diff --git a/.github/workflows/deploy-react-components.yml b/.github/workflows/deploy-react-components.yml index b587e1bec..83565b1f1 100644 --- a/.github/workflows/deploy-react-components.yml +++ b/.github/workflows/deploy-react-components.yml @@ -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 diff --git a/.github/workflows/deploy-wallet-connectors.yml b/.github/workflows/deploy-wallet-connectors.yml index a20903346..91769f349 100644 --- a/.github/workflows/deploy-wallet-connectors.yml +++ b/.github/workflows/deploy-wallet-connectors.yml @@ -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}}' diff --git a/.yarnrc.yml b/.yarnrc.yml index 4e424eb87..6d0477b18 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -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} diff --git a/packages/ccd-js-gen/package.json b/packages/ccd-js-gen/package.json index edcea0a46..ead2c2857 100644 --- a/packages/ccd-js-gen/package.json +++ b/packages/ccd-js-gen/package.json @@ -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": "support@concordium.software", @@ -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", diff --git a/packages/react-components/package.json b/packages/react-components/package.json index e74796628..da324d1fd 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -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" @@ -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" }, diff --git a/packages/rust-bindings/package.json b/packages/rust-bindings/package.json index b8c11364d..feb0dd663 100644 --- a/packages/rust-bindings/package.json +++ b/packages/rust-bindings/package.json @@ -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", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 50bcc9d16..d3b3fdda9 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -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", @@ -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", diff --git a/packages/wallet-connectors/package.json b/packages/wallet-connectors/package.json index a942c3dcb..7c5bb46c5 100644 --- a/packages/wallet-connectors/package.json +++ b/packages/wallet-connectors/package.json @@ -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"