Skip to content

Commit

Permalink
Fix for registry publishing depending on action workflow run.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Ramzi committed Jun 8, 2023
1 parent 16266e4 commit 73166fb
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 73166fb

Please sign in to comment.