Skip to content

Commit

Permalink
fix: set npm token in different ways to publish package (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 authored Oct 15, 2024
1 parent e3f1720 commit 1c738d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
scope: '@avalabs'
- name: Install yarn
run: npm install -g yarn
- name: Create .npmrc
run: echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' >> .npmrc
- run: yarn install
- run: yarn build
- name: Get latest release version number
Expand All @@ -42,3 +44,4 @@ jobs:
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1c738d1

Please sign in to comment.