Skip to content

Commit d1c0eda

Browse files
authored
Update npm-publish.yml
1 parent cab622e commit d1c0eda

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/npm-publish.yml

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3-
41
name: Node.js Package
52

63
on:
@@ -12,22 +9,21 @@ jobs:
129
runs-on: ubuntu-latest
1310
steps:
1411
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
12+
- uses: oven-sh/setup-bun@v1
1613
with:
17-
node-version: 20
18-
- run: bun ci
14+
bun-version: latest
15+
- run: bun install
1916
- run: bun test
2017

2118
publish-npm:
2219
needs: build
2320
runs-on: ubuntu-latest
2421
steps:
2522
- uses: actions/checkout@v4
26-
- uses: actions/setup-node@v4
23+
- uses: oven-sh/setup-bun@v1
2724
with:
28-
node-version: 20
29-
registry-url: https://registry.npmjs.org/
30-
- run: bun ci
31-
- run: bun publish
25+
bun-version: latest
26+
- run: bun install
27+
- run: bun publish --access public
3228
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)