diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml index 87289214..99d49154 100644 --- a/.github/workflows/publish_npm.yml +++ b/.github/workflows/publish_npm.yml @@ -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 != '' }}