File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,27 @@ jobs:
1818 runs-on : ubuntu-latest
1919 env :
2020 NODE_AUTH_TOKEN : ${{ matrix.auth-token }}
21+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2123 strategy :
2224 fail-fast : false
2325 matrix :
2426 include :
2527 - registry : npm
2628 registry-url : https://registry.npmjs.org/
27- auth-token : ${{ secrets.NPM_TOKEN }}
2829 scope : ' '
2930 - registry : gpr
3031 registry-url : https://npm.pkg.github.com/
31- auth-token : ${{ secrets.GITHUB_TOKEN }}
3232 scope : ' @${{ github.repository_owner }}'
3333 steps :
3434 - uses : actions/checkout@v4
35353636 with :
3737 node-version : 20
38+ registry-url : ${{ matrix.registry-url }}
39+ scope : ${{ matrix.scope }}
40+ env :
41+ NODE_AUTH_TOKEN : ${{ matrix.registry == 'npm' && secrets.NPM_TOKEN || secrets.GITHUB_TOKEN }}
3842 - run : corepack enable
3943 - run : yarn
4044 - run : yarn publish
You can’t perform that action at this time.
0 commit comments