Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr authored Oct 21, 2023
1 parent aec6ee7 commit 7eacd28
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: npm install;npm run build-ts
- run: npm install -g npm-cli-login

publish-gpr:
publish-dgmjr-io:
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -40,15 +40,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
token: ${{ secrets.GITHUB_TOKEN }}
scope: '@dgmjr-io'
- run: npm-cli-login -u dgmjr -p ${{ secrets.GITHUB_TOKEN }} -e [email protected] -s @dgmjr -r https://npm.pkg.github.com/
- run: npm publish --registry=https://npm.pkg.github.com/
registry-url: ${{ vars.DGMJR_IO_NPM_ENDPOINT }}
token: ${{ secrets.PROGET_API_TOKEN }}
- run: npm-cli-login -u api -p ${{ secrets.PROGET_API_KEY }} -e [email protected] -r ${{ vars.PROGET_NPM_ENDPOINT }}
- run: npm publish --registry=${{ vars.PROGET_NPM_ENDPOINT }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-dgmjr-io:
NODE_AUTH_TOKEN: ${{ secrets.PROGET_API_KEY }}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -61,9 +60,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: ${{ vars.DGMJR_IO_NPM_ENDPOINT }}
token: ${{ secrets.PROGET_API_TOKEN }}
- run: npm-cli-login -u api -p ${{ secrets.PROGET_API_KEY }} -e [email protected] -r ${{ vars.DGMJR_IO_NPM_ENDPOINT }}
- run: npm publish --registry=${{ vars.DGMJR_IO_NPM_ENDPOINT }}
registry-url: https://npm.pkg.github.com/
token: ${{ secrets.GITHUB_TOKEN }}
scope: '@dgmjr-io'
- run: npm-cli-login -u dgmjr -p ${{ secrets.GITHUB_TOKEN }} -e [email protected] -s @dgmjr -r https://npm.pkg.github.com/
- run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.PROGET_API_KEY }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7eacd28

Please sign in to comment.