Skip to content

Commit

Permalink
Store NPM access token in NODE_AUTH_TOKEN environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
komiya-atsushi committed Jul 31, 2024
1 parent d1b81fd commit c6b9a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Verify npmjs access token (this step will fail if the token has expired)
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
Expand Down

0 comments on commit c6b9a37

Please sign in to comment.