From 6195b4ad9223f5600fcd4fc5b1132033561c3410 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 14 May 2020 02:47:14 +0200 Subject: [PATCH] update --- .github/workflows/publish.yaml | 6 +++--- TEMPLATE_README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 969f5a9..35bb4e0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -55,13 +55,13 @@ jobs: run: ls -lR - name: Publishing on NPM run: | - if [ "$NODE_AUTH_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" + if [ "$NPM_TOKEN" = "" ]; then + 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 fi npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Commit changes run: | diff --git a/TEMPLATE_README.md b/TEMPLATE_README.md index 4e43c1b..788ae54 100644 --- a/TEMPLATE_README.md +++ b/TEMPLATE_README.md @@ -12,7 +12,7 @@ The following Secrets need to be set to be able to publish. - ``PAT``: GitHub Personal access token. -- ``NODE_AUTH_TOKEN``: NPM Authorization token. +- ``NPM_TOKEN``: NPM Authorization token. # NOTES: