From b25fc1adce69aa5a79bb784ba664f70f37996af0 Mon Sep 17 00:00:00 2001 From: Fabrizio Ferrai Date: Tue, 20 Apr 2021 16:10:29 +0300 Subject: [PATCH] Fix NPM publish in CI (#50) --- .github/workflows/release.yml | 5 ++++- ci-npmrc.txt | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ci-npmrc.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aad67e7..b612084 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,4 +49,7 @@ jobs: shell: bash env: NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }} - run: npm publish --non-interactive --access public \ No newline at end of file + run: | + mv ci-npmrc.txt .npmrc + npm ci + npm publish --non-interactive --access public \ No newline at end of file diff --git a/ci-npmrc.txt b/ci-npmrc.txt new file mode 100644 index 0000000..3c64dc6 --- /dev/null +++ b/ci-npmrc.txt @@ -0,0 +1,4 @@ +//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} +registry=https://registry.npmjs.org/ +always-auth=true +