Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikmudunuri authored Jun 2, 2024
1 parent 4473f87 commit 0ba4c78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
node-version: '18.17.1'
registry-url: 'https://registry.npmjs.org'

- name: Configure .npmrc for GitHub Packages
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.THUB_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Publish to npm
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.THUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0ba4c78

Please sign in to comment.