Skip to content

Commit

Permalink
Merge pull request #279 from ditrit/bugfix/publish_to_npm
Browse files Browse the repository at this point in the history
Fix publishing to npm
  • Loading branch information
Zorin95670 authored Aug 8, 2024
2 parents 886eba2 + 2844236 commit 3e88b86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
- name: Setup npm
run: npm install -g [email protected]

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

- name: Install dependencies
run: npm install

- name: Publish to npm
run: npm publish --access public
run: npm login && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3e88b86

Please sign in to comment.