Skip to content

Commit

Permalink
Fixed npm release action
Browse files Browse the repository at this point in the history
- Use bun for build and release
  • Loading branch information
kirankunigiri committed Nov 13, 2024
1 parent 8980ee5 commit 973f7fb
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,15 @@ jobs:

- run: cp README.md package/README.md

- uses: pnpm/action-setup@v4
- uses: oven-sh/setup-bun@v2
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: '20.x'
bun-version: latest
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"

- run: pnpm install --frozen-lockfile --filter ./package
- run: bun install --cwd package

- run: pnpm --filter ./package run build
- run: bun run --cwd package build

- run: cd package && npm publish --access public
- run: cd package && bun publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 973f7fb

Please sign in to comment.