Skip to content

Commit

Permalink
fix(npm-ci): fixed npm registry authentification
Browse files Browse the repository at this point in the history
  • Loading branch information
SachsenspieltCoding committed Jan 2, 2024
1 parent 04b5f11 commit 9a543b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ jobs:
with:
node-version: 20

- name: Config npm
run: |
npm config set always-auth true
npm config set _auth ${{secrets.NPM_PUBLISH_KEY}}
npm config set email ${{secrets.NPM_EMAIL}}
npm config set registry https://registry.npmjs.org/
- name: Publish to NPM
run: npm publish
env:
NPM_TOKEN: ${{secrets.NPM_PUBLISH_KEY}}

0 comments on commit 9a543b2

Please sign in to comment.