Skip to content

Commit b1ecfe5

Browse files
committed
ci: fix
1 parent 4b6f083 commit b1ecfe5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3535
- uses: actions/[email protected]
3636
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

0 commit comments

Comments
 (0)