Skip to content

Commit

Permalink
Use yarn npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Jun 19, 2024
1 parent afa0a28 commit f94c93e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-react-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Publish to NPM
run: npm publish --workspace "@concordium/react-components"
run: yarn workspace @concordium/react-components npm publish
env:
NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}'
NODE_AUTH_TOKEN: '${{secrets.NPM_PUBLISH_TOKEN}}'

- name: Create a GitHub release
uses: ncipollo/release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-wallet-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Publish to NPM
run: npm publish --workspace "@concordium/wallet-connectors" --verbose
run: yarn workspace @concordium/wallet-connectors npm publish
env:
NODE_AUTH_TOKEN: '${{secrets.NPM_PUBLISH_TOKEN}}'

Expand Down
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ plugins:
yarnPath: .yarn/releases/yarn-berry.cjs

enableMessageNames: false

# publishing
npmPublishAccess: "public"
npmPublishRegistry: "https://registry.npmjs.org"
npmAuthToken: ${NODE_AUTH_TOKEN}
5 changes: 1 addition & 4 deletions packages/ccd-js-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
"url": "https://github.com/Concordium/concordium-node-sdk-js",
"directory": "packages/ccd-js-gen"
},
"publishConfig": {
"access": "public"
},
"author": {
"name": "Concordium Software",
"email": "[email protected]",
Expand All @@ -46,7 +43,7 @@
"@concordium/web-sdk": "7.x"
},
"dependencies": {
"@concordium/web-sdk": "^7.0.0",
"@concordium/web-sdk": "workspace:^7.0.0",
"buffer": "^6.0.3",
"commander": "^11.0.0",
"sanitize-filename": "^1.6.3",
Expand Down
5 changes: 1 addition & 4 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"./dist",
"./src"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Concordium/concordium-node-sdk-js/tree/main/packages/react-components"
Expand All @@ -32,7 +29,7 @@
"build": "tsc"
},
"dependencies": {
"@concordium/wallet-connectors": "^0.6.0",
"@concordium/wallet-connectors": "workspace:^",
"@protobuf-ts/grpcweb-transport": "^2.9.4",
"buffer": "^6.0.3"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/rust-bindings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"url": "https://github.com/Concordium/concordium-node-sdk-js",
"directory": "packages/rust-bindings"
},
"publishConfig": {
"access": "public"
},
"sideEffects": [
"./lib/*/web/umd/index.min.js",
"./lib/*/bundler/index.js",
Expand Down
5 changes: 1 addition & 4 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"sideEffects": [
"lib/min/*"
],
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "lib/min/concordium.node.min.js",
"browser": "lib/min/concordium.web.min.js",
Expand Down Expand Up @@ -100,7 +97,7 @@
"clean": "rimraf -- lib src/grpc-api"
},
"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
3 changes: 0 additions & 3 deletions packages/wallet-connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"./dist",
"./src"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Concordium/concordium-node-sdk-js/tree/main/packages/wallet-connectors"
Expand Down

0 comments on commit f94c93e

Please sign in to comment.