File tree 1 file changed +8
-12
lines changed
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 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
-
4
1
name : Node.js Package
5
2
6
3
on :
12
9
runs-on : ubuntu-latest
13
10
steps :
14
11
- uses : actions/checkout@v4
15
- - uses : actions /setup-node@v4
12
+ - uses : oven-sh /setup-bun@v1
16
13
with :
17
- node -version : 20
18
- - run : bun ci
14
+ bun -version : latest
15
+ - run : bun install
19
16
- run : bun test
20
17
21
18
publish-npm :
22
19
needs : build
23
20
runs-on : ubuntu-latest
24
21
steps :
25
22
- uses : actions/checkout@v4
26
- - uses : actions /setup-node@v4
23
+ - uses : oven-sh /setup-bun@v1
27
24
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
32
28
env :
33
- NODE_AUTH_TOKEN : ${{secrets.npm_token }}
29
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments