Skip to content

Commit

Permalink
Merge pull request #359 from carstencodes/contrib/carstencodes/deploy…
Browse files Browse the repository at this point in the history
…ments/javascript_npm_email

ci: Add NPM_EMAIL
  • Loading branch information
yoheimuta authored Dec 20, 2023
2 parents f640d22 + 2df28f0 commit e8006c4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ jobs:
run: |
echo "::warning title=Missing authentication token::In order to publish an NPM package, you must set the NPM_TOKEN secret"
if: ${{ env.NODE_AUTH_TOKEN == '' }}
- name: Issue warning if NPM_EMAIL is not set
env:
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
run: |
echo "::warning title=Missing authentication information::In order to publish an NPM package, you must set the NPM_EMAIL secret"
if: ${{ env.NPM_EMAIL == '' }}
- name: Publish NPM package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
run: npm publish
working-directory: ./bdist/js
if: ${{ env.NODE_AUTH_TOKEN != '' }}
if: ${{ env.NPM_AUTH_TOKEN != '' }}

0 comments on commit e8006c4

Please sign in to comment.