Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphschuler committed Nov 26, 2023
1 parent 4b6f083 commit b1ecfe5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ matrix.auth-token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
include:
- registry: npm
registry-url: https://registry.npmjs.org/
auth-token: ${{ secrets.NPM_TOKEN }}
scope: ''
- registry: gpr
registry-url: https://npm.pkg.github.com/
auth-token: ${{ secrets.GITHUB_TOKEN }}
scope: '@${{ github.repository_owner }}'
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: 20
registry-url: ${{ matrix.registry-url }}
scope: ${{ matrix.scope }}
env:
NODE_AUTH_TOKEN: ${{ matrix.registry == 'npm' && secrets.NPM_TOKEN || secrets.GITHUB_TOKEN }}
- run: corepack enable
- run: yarn
- run: yarn publish
Expand Down

0 comments on commit b1ecfe5

Please sign in to comment.