Skip to content

Commit

Permalink
chore: 🔧 configure credentials
Browse files Browse the repository at this point in the history
Update npm token for GitHub Actions
  • Loading branch information
andrewdyer committed Aug 8, 2024
1 parent 87e06b1 commit bcdf157
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
# if: env.PUBLISH_ENABLED == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,11 +21,10 @@ jobs:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'

- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci

- name: Publish package
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bcdf157

Please sign in to comment.