Skip to content

Commit

Permalink
Set token in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Jun 19, 2024
1 parent f94c93e commit 7bcae18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-react-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ enableMessageNames: false
# publishing
npmPublishAccess: "public"
npmPublishRegistry: "https://registry.npmjs.org"
npmAuthToken: ${NODE_AUTH_TOKEN}
# npmAuthToken is set in CD pipeline

0 comments on commit 7bcae18

Please sign in to comment.