File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 3333 name : Publish
3434 runs-on : ubuntu-22.04
3535 permissions :
36- contents : write
36+ contents : write # Push version changes
37+ id-token : write # OIDC for NPM publishing
3738 needs :
3839 - validate
3940 steps :
6162 - name : Publish to NPM
6263 working-directory : packages/${{ inputs.package }}
6364 run : |
64- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
65- pnpm build
66- pnpm publish
65+ sudo npm i -g npm@latest
66+ npm publish
6767
6868 - name : Create GitHub release
6969 run : pnpm tsx scripts/create-github-release.ts ${{ inputs.package }}
Original file line number Diff line number Diff line change 1212 name : ' Sync with @types/chrome'
1313 runs-on : ubuntu-latest
1414 permissions :
15- contents : write
15+ contents : write # Push version changes
16+ id-token : write # OIDC for NPM publishing
1617 steps :
1718 - name : Checkout
1819 uses : actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
4243 if : steps.commit.outputs.changes_detected == 'true'
4344 working-directory : packages/browser
4445 run : |
45- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
46- pnpm publish
46+ sudo npm i -g npm@latest
47+ npm publish
You can’t perform that action at this time.
0 commit comments