File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 release :
1111 runs-on : ubuntu-latest
1212
13+ permissions :
14+ contents : write
15+ pull-requests : write
16+ id-token : write
17+
1318 steps :
1419 - uses : actions/checkout@v4
1520
3035 version : bun run version
3136 env :
3237 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38+ NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change 1010 snapshot :
1111 runs-on : ubuntu-latest
1212
13+ permissions :
14+ contents : read
15+ id-token : write
16+
1317 steps :
1418 - uses : actions/checkout@v4
1519
2630 - name : Unit tests
2731 run : bun run test:unit
2832
33+ - name : Setup npm auth
34+ run : |
35+ echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > .npmrc
36+ env :
37+ NODE_AUTH_TOKEN : " "
38+
2939 - name : Publish snapshot to npm
3040 run : |
3141 npx changeset version --snapshot canary
32- npx changeset publish --tag canary
42+ npx changeset publish --tag canary --no-git-tag
3343 env :
34- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
44+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
45+ NPM_CONFIG_PROVENANCE : true
You can’t perform that action at this time.
0 commit comments