Skip to content

Commit

Permalink
chore: Update .github/workflows/publish.yml to use bun as package man…
Browse files Browse the repository at this point in the history
…ager and update node version to 20.x
  • Loading branch information
uiuxarghya committed Aug 14, 2024
1 parent b195d50 commit bfb03d6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: publish

on:
release:
types: [created]
Expand All @@ -11,20 +10,25 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "20.x"
registry-url: https://registry.npmjs.org/

- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run lint
- run: bun run build
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: actions/setup-node@v2

- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com/

- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run lint
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit bfb03d6

Please sign in to comment.