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