File tree Expand file tree Collapse file tree 1 file changed +44
-36
lines changed
Expand file tree Collapse file tree 1 file changed +44
-36
lines changed Original file line number Diff line number Diff line change 1- name : Node.js Package Publish
2-
3- on :
4- release :
5- types : [created]
6-
7- jobs :
8- check :
9- runs-on : ubuntu-latest
10- permissions :
11- contents : read
12- id-token : write
13- steps :
14- - uses : actions/checkout@v3
15- - name : Setup Bun
16- 17- - run : bun install
18-
19- publish-npm :
20- needs : check
21- runs-on : ubuntu-latest
22- permissions :
23- contents : read
24- id-token : write
25- steps :
26- - uses : actions/checkout@v3
27- - uses : actions/setup-node@v4
28- with :
29- node-version : ' 20.x'
30- registry-url : ' https://registry.npmjs.org'
31- - run : npm install -g bun
32- - run : bun install
33- - run : bun run build
34- - run : npm publish --tag canary --provenance --access public
35- env :
36- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
1+ name : Node.js Package Publish
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ check :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ id-token : write
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Setup Bun
16+ 17+ - run : bun install
18+
19+ publish-npm :
20+ needs : check
21+ runs-on : ubuntu-latest
22+ permissions :
23+ contents : read
24+ id-token : write
25+ steps :
26+ - uses : actions/checkout@v3
27+ - uses : actions/setup-node@v4
28+ with :
29+ node-version : ' 20.x'
30+ registry-url : ' https://registry.npmjs.org'
31+ - name : Install Rust and Cargo
32+ run : |
33+ sudo apt update
34+ sudo apt install -y curl
35+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
36+ source $HOME/.cargo/env
37+ - name : Install wasm-pack
38+ run : cargo install wasm-pack
39+ - run : npm install -g bun
40+ - run : bun install
41+ - run : bun run build
42+ - run : npm publish --tag canary --provenance --access public
43+ env :
44+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments