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 38e5fc1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 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
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3565,7 +3565,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@concordium/ccd-js-gen@workspace:packages/ccd-js-gen"
dependencies:
"@concordium/web-sdk": ^7.0.0
"@concordium/web-sdk": "workspace:^7.0.0"
"@types/jest": ^26.0.23
"@types/node": ^20.5.0
buffer: ^6.0.3
Expand Down Expand Up @@ -3632,7 +3632,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@concordium/react-components@workspace:packages/react-components"
dependencies:
"@concordium/wallet-connectors": ^0.6.0
"@concordium/wallet-connectors": "workspace:^"
"@protobuf-ts/grpcweb-transport": ^2.9.4
"@tsconfig/recommended": ^1.0.1
"@types/node": ^18.11.17
Expand All @@ -3647,7 +3647,7 @@ __metadata:
languageName: unknown
linkType: soft

"@concordium/rust-bindings@^3.1.0, @concordium/rust-bindings@workspace:packages/rust-bindings":
"@concordium/rust-bindings@workspace:^, @concordium/rust-bindings@workspace:packages/rust-bindings":
version: 0.0.0-use.local
resolution: "@concordium/rust-bindings@workspace:packages/rust-bindings"
dependencies:
Expand All @@ -3668,7 +3668,7 @@ __metadata:
languageName: unknown
linkType: soft

"@concordium/wallet-connectors@^0.6.0, @concordium/wallet-connectors@workspace:packages/wallet-connectors":
"@concordium/wallet-connectors@workspace:^, @concordium/wallet-connectors@workspace:packages/wallet-connectors":
version: 0.0.0-use.local
resolution: "@concordium/wallet-connectors@workspace:packages/wallet-connectors"
dependencies:
Expand All @@ -3695,11 +3695,11 @@ __metadata:
languageName: unknown
linkType: soft

"@concordium/web-sdk@^7.0.0, @concordium/web-sdk@workspace:^, @concordium/web-sdk@workspace:packages/sdk":
"@concordium/web-sdk@workspace:^, @concordium/web-sdk@workspace:^7.0.0, @concordium/web-sdk@workspace:packages/sdk":
version: 0.0.0-use.local
resolution: "@concordium/web-sdk@workspace:packages/sdk"
dependencies:
"@concordium/rust-bindings": ^3.1.0
"@concordium/rust-bindings": "workspace:^"
"@grpc/grpc-js": ^1.9.4
"@noble/ed25519": ^2.0.0
"@noble/hashes": ^1.3.2
Expand Down

0 comments on commit 38e5fc1

Please sign in to comment.