Skip to content

Commit

Permalink
ci: add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
sakkke committed Apr 8, 2024
1 parent 82fe1bd commit c733d90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun ./src/index.js
- run: bun run build
- run: bun ./dist/index.js
- run: bun test

publish-npm:
Expand All @@ -21,7 +22,8 @@ jobs:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun ./src/index.js
- run: bun run build
- run: bun ./dist/index.js
- run: |
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' >>~/.npmrc
bunx npm publish
Expand Down

0 comments on commit c733d90

Please sign in to comment.