Skip to content

Commit f86df19

Browse files
committedDec 7, 2024··
fix: run build prior to publishing
1 parent f7483f4 commit f86df19

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
node-version: lts/*
4141
cache: npm
4242
- run: npm ci
43+
- run: npm run build
4344
- run: npx semantic-release --dry-run
4445
if: always()
4546
env:
@@ -64,6 +65,7 @@ jobs:
6465
node-version: lts/*
6566
cache: npm
6667
- run: npm ci
68+
- run: npm run build
6769
- run: npx semantic-release
6870
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
6971
# e.g. git tags were pushed but it exited before `npm publish`

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"lint": "eslint . && tsc --noEmit",
2626
"posttest": "npm run lint",
2727
"prebuild": "npm run clean",
28-
"prepublishOnly": "npm run build",
28+
"prepare": "npm run build",
2929
"test": "npm run test:node && npm run test:browser",
3030
"test:browser": "tsx test/browser/client.browser.test.ts",
3131
"test:bun": "bun run test/bun/client.bun.test.ts",

0 commit comments

Comments
 (0)
Please sign in to comment.