Skip to content

Commit

Permalink
change path for npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Lazarov committed Feb 20, 2025
1 parent 99d84a2 commit 3a0d205
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ jobs:
- run: npm install
- run: npm run build
- run: |
echo "@Peter-Lazarov:registry=https://npm.pkg.github.com" > build/.npmrc
echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> build/.npmrc
echo "@Peter-Lazarov:registry=https://npm.pkg.github.com" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: cat ~/.npmrc # Debugging step to check .npmrc content
- run: echo "NPM_TOKEN is $NPM_TOKEN" # Debugging step to verify token visibility
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish
working-directory: ./build
env:
Expand Down

0 comments on commit 3a0d205

Please sign in to comment.