From 9d08a492587485e1df86d16ef91fb9486e30450d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Fri, 26 Mar 2021 21:09:21 +0100 Subject: [PATCH] Instruct npm to use token (#102) --- .github/workflows/webviz-core-components.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webviz-core-components.yml b/.github/workflows/webviz-core-components.yml index 5305e386..abe50d94 100644 --- a/.github/workflows/webviz-core-components.yml +++ b/.github/workflows/webviz-core-components.yml @@ -71,9 +71,11 @@ jobs: - name: 🔼 Build and publish Node.js package if: github.event_name == 'release' && matrix.python-version == '3.6' env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | npm version --no-git-tag-version ${GITHUB_REF//refs\/tags\//} + npm config set '//registry.npmjs.org/:_authToken' '${NPM_TOKEN}' + npm config set always-auth true npm publish --access public - name: 🚢 Build and deploy Python package