Skip to content

Commit

Permalink
chore: use different auth method for NPM (#1161)
Browse files Browse the repository at this point in the history
* chore: use different auth method for NPM

* chore: undo comment
  • Loading branch information
patrickarlt authored Jun 1, 2024
1 parent 15dce8d commit 507ff75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ jobs:
# This parameter is required to make sure sematic-relase exactly use the provided GitHub Token
# See https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#pushing-package.json-changes-to-your-repository
persist-credentials: false

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Configure npm
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
cat .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
run: npm ci

Expand Down

0 comments on commit 507ff75

Please sign in to comment.