From d33f25050375c85e385de06f4f55e5dcd876a318 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 14 May 2020 04:16:52 +0200 Subject: [PATCH] udpate --- .github/workflows/publish.yaml | 8 ++++---- .npmrc | 1 - TEMPLATE_README.md | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index dce8bb9..c8697c0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -34,10 +34,7 @@ jobs: publish_npm: runs-on: ubuntu-latest needs: update_changelog_and_sync_package_lock_version - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - - uses: actions/checkout@v2 - name: Remove branch 'latest' continue-on-error: true @@ -61,8 +58,11 @@ jobs: 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 + echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc npm publish - + rm .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Commit changes run: | git config --local user.email "ts_ci@github.com" diff --git a/.npmrc b/.npmrc deleted file mode 100644 index bd3327a..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=${NPM_TOKEN} \ No newline at end of file diff --git a/TEMPLATE_README.md b/TEMPLATE_README.md index 788ae54..216ab81 100644 --- a/TEMPLATE_README.md +++ b/TEMPLATE_README.md @@ -17,6 +17,7 @@ The following Secrets need to be set to be able to publish. # NOTES: - The template does not support ``.npmignore`` use ``package.json`` ``files`` instead. +- The template does not support ``.npmrc`` - Don't forget to update the ``package.json`` ``files`` entry to specify the files you would like to be included in the NPM bundle. - The dev dependency ``evt`` is just used as an utility in the demo ``/src/test/`` directory. - The dev dependency ``denoify`` is needed for the NPM script ``enable_short_import_path``.