From bb7c53b61658ffa43f003913c63fa4d0bdf11781 Mon Sep 17 00:00:00 2001 From: Ovin Eilertsen Teige Date: Thu, 19 Jan 2023 13:55:00 +0100 Subject: [PATCH] Use setup node with specified registry And access token through env --- .github/workflows/npmpublish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 72df04ec..04c386af 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -45,10 +45,11 @@ jobs: node-version: '18' cache: 'npm' registry-url: 'https://registry.npmjs.org/' - token: ${{secrets.npm_token}} - name: Publish package to NPM run: npm run pub + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} publish-docs: runs-on: ubuntu-latest