Skip to content

Commit

Permalink
chore: publish workflow should include prepack script
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 8, 2024
1 parent 00033a6 commit 05d193b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Install dependencies
run: npm install --force

- name: Build library
run: npm run prepack

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"index:components": "bun scripts/index-components.ts",
"prepack": "bunx --bun tsc -p tsconfig.build.json",
"prepack": "tsc -p tsconfig.build.json",
"format": "bunx --bun prettier --write ."
},
"dependencies": {
Expand Down

0 comments on commit 05d193b

Please sign in to comment.