Skip to content

Commit

Permalink
Merge pull request #80 from adzerk/npm-registry-switch-fix
Browse files Browse the repository at this point in the history
Fix for registry publishing depending on action workflow run.
  • Loading branch information
honeycomb-cheesecake authored Jun 8, 2023
2 parents 16266e4 + 73166fb commit 33a6b0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]


env:
NPM_REGISTRY: https://npm.pkg.github.com
NPM_SECRET: ${{ secrets.GITHUB_TOKEN }}

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_SECRET: ${{ secrets.GITHUB_TOKEN }}
NPM_REGISTRY: https://registry.npmjs.org
NPM_SECRET: ${{ secrets.NPM_TOKEN }}

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@adzerk:registry=https://npm.pkg.github.com
@adzerk:registry=${NPM_REGISTRY}
//npm.pkg.github.com/:_authToken=${NPM_SECRET}

0 comments on commit 33a6b0f

Please sign in to comment.