Skip to content

Commit

Permalink
Fix tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
acalcutt committed Sep 11, 2022
1 parent a748b46 commit 17847c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/node-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.CR_PAT }}
token: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}

- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -166,21 +166,21 @@ jobs:
npm run package
npm run release
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.CR_PAT }}
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}

- name: Publish to NPM (release)
if: matrix.os == 'ubuntu-20.04' && matrix.node == '18' && github.ref == 'refs/heads/main' && github.event.inputs.version != 'prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to NPM (prerelease)
if: matrix.os == 'ubuntu-20.04' && matrix.node == '18' && github.ref == 'refs/heads/main' && github.event.inputs.version == 'prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --tag next --access public
env:
NPM_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 17847c3

Please sign in to comment.