Skip to content

Commit

Permalink
fix: Move NPM env vars up
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Oct 5, 2022
1 parent 06dc4d8 commit a6ebf51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
) && (
needs.release_check.outputs.CAN_RELEASE == 'true'
)
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -102,12 +105,7 @@ jobs:
# continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.AUTO_RELEASE_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
# see https://github.com/pnpm/pnpm/issues/3141
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> .npmrc
pnpm release
run: pnpm release

- name: Check published prerelease
if: github.ref == 'refs/heads/develop'
Expand Down

0 comments on commit a6ebf51

Please sign in to comment.