Skip to content

Commit

Permalink
fix: run build prior to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 7, 2024
1 parent f7483f4 commit f86df19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: npx semantic-release --dry-run
if: always()
env:
Expand All @@ -64,6 +65,7 @@ jobs:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: npx semantic-release
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
# e.g. git tags were pushed but it exited before `npm publish`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint": "eslint . && tsc --noEmit",
"posttest": "npm run lint",
"prebuild": "npm run clean",
"prepublishOnly": "npm run build",
"prepare": "npm run build",
"test": "npm run test:node && npm run test:browser",
"test:browser": "tsx test/browser/client.browser.test.ts",
"test:bun": "bun run test/bun/client.bun.test.ts",
Expand Down

0 comments on commit f86df19

Please sign in to comment.