From 7bcae1804c6ec418053e66860ceebf5097c341ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Bruus=20Zeppelin?= Date: Wed, 19 Jun 2024 11:21:43 +0200 Subject: [PATCH] Set token in CI --- .github/workflows/deploy-react-components.yml | 6 ++++-- .yarnrc.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-react-components.yml b/.github/workflows/deploy-react-components.yml index 83565b1f1..eb33491ca 100644 --- a/.github/workflows/deploy-react-components.yml +++ b/.github/workflows/deploy-react-components.yml @@ -116,9 +116,11 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Publish to NPM - run: yarn workspace @concordium/react-components npm publish + run: | + yarn config set npmAuthToken $NPM_AUTH_TOKEN + yarn workspace @concordium/react-components npm publish env: - NODE_AUTH_TOKEN: '${{secrets.NPM_PUBLISH_TOKEN}}' + NPM_AUTH_TOKEN: '${{secrets.NPM_PUBLISH_TOKEN}}' - name: Create a GitHub release uses: ncipollo/release-action@v1 diff --git a/.yarnrc.yml b/.yarnrc.yml index 6d0477b18..52cb1e23c 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -11,4 +11,4 @@ enableMessageNames: false # publishing npmPublishAccess: "public" npmPublishRegistry: "https://registry.npmjs.org" -npmAuthToken: ${NODE_AUTH_TOKEN} +# npmAuthToken is set in CD pipeline