Skip to content

Commit e381e65

Browse files
committed
run build before publishing package
1 parent 553ce9c commit e381e65

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ jobs:
4747
node-version: 24
4848
registry-url: https://registry.npmjs.org/
4949
- run: npm ci
50+
- run: npm run build
5051
- run: npm publish --provenance --access public

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"bump": "npm version patch && git push origin main --follow-tags",
4040
"bump:minor": "npm version minor && git push origin main --follow-tags",
4141
"bump:major": "npm version major && git push origin main --follow-tags",
42-
"release": "gh release create v$(node -p \"require('./package.json').version\") --title v$(node -p \"require('./package.json').version\") --generate-notes"
42+
"release": "gh release create v$(node -p \"require('./package.json').version\") --title v$(node -p \"require('./package.json').version\") --generate-notes",
43+
"prepublishOnly": "npm run build"
4344
},
4445
"dependencies": {
4546
"@servicestack/client": "^2.1.13",

0 commit comments

Comments
 (0)