Skip to content

Commit

Permalink
ci: update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Best-Codes committed Jul 22, 2024
1 parent 1b75e08 commit 678cb29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- run: npm publish
- name: Publish to GitHub Packages
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 678cb29

Please sign in to comment.