This commit is contained in:
Joseph Garrone 2020-05-14 02:47:14 +02:00
parent a5e844649b
commit 6195b4ad92
2 changed files with 4 additions and 4 deletions

View file

@ -55,13 +55,13 @@ jobs:
run: ls -lR run: ls -lR
- name: Publishing on NPM - name: Publishing on NPM
run: | run: |
if [ "$NODE_AUTH_TOKEN" = "" ]; then if [ "$NPM_TOKEN" = "" ]; then
echo "Can't publish on NPM, You must first create a secret called NODE_AUTH_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets" echo "Can't publish on NPM, You must first create a secret called NPM_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets"
false false
fi fi
npm publish npm publish
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit changes - name: Commit changes
run: | run: |

View file

@ -12,7 +12,7 @@
The following Secrets need to be set to be able to publish. The following Secrets need to be set to be able to publish.
- ``PAT``: GitHub Personal access token. - ``PAT``: GitHub Personal access token.
- ``NODE_AUTH_TOKEN``: NPM Authorization token. - ``NPM_TOKEN``: NPM Authorization token.
# NOTES: # NOTES: