From fe3defe624646c3e9a74cd645cb88e0caf352667 Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Thu, 23 May 2024 16:09:56 +0200 Subject: [PATCH] Fixing deployment, fourth try is the charm : ^) Got new error, so authentication should work out now. The `npm_token` was wrong... --- .github/workflows/deploy-ccd-js-gen.yml | 12 +++++++++--- .github/workflows/deploy-rust-bindings.yml | 12 +++++++++--- .github/workflows/deploy-sdk.yml | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-ccd-js-gen.yml b/.github/workflows/deploy-ccd-js-gen.yml index 25f8ac704..06d6e98a6 100644 --- a/.github/workflows/deploy-ccd-js-gen.yml +++ b/.github/workflows/deploy-ccd-js-gen.yml @@ -127,7 +127,13 @@ jobs: cache: yarn registry-url: 'https://registry.npmjs.org' - - name: Publish to NPM - run: npm publish --workspace packages/ccd-js-gen + - name: Setup .yarnrc.yml + run: | + yarn config set npmRegistryServer "https://registry.npmjs.org" + yarn config set npmAlwaysAuth true + yarn config set npmAuthToken $NPM_AUTH_TOKEN env: - NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' + NPM_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' + + - name: Publish to NPM + run: yarn workspace @concordium/ccd-js-gen npm publish --access public diff --git a/.github/workflows/deploy-rust-bindings.yml b/.github/workflows/deploy-rust-bindings.yml index 99b50882e..81df1dd31 100644 --- a/.github/workflows/deploy-rust-bindings.yml +++ b/.github/workflows/deploy-rust-bindings.yml @@ -127,7 +127,13 @@ jobs: cache: yarn registry-url: 'https://registry.npmjs.org' - - name: Publish to NPM - run: npm publish --workspace packages/rust-bindings + - name: Setup .yarnrc.yml + run: | + yarn config set npmRegistryServer "https://registry.npmjs.org" + yarn config set npmAlwaysAuth true + yarn config set npmAuthToken $NPM_AUTH_TOKEN env: - NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' + NPM_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' + + - name: Publish to NPM + run: yarn workspace @concordium/rust-bindings npm publish --access public diff --git a/.github/workflows/deploy-sdk.yml b/.github/workflows/deploy-sdk.yml index e294b0a9b..2d18c8ffa 100644 --- a/.github/workflows/deploy-sdk.yml +++ b/.github/workflows/deploy-sdk.yml @@ -201,4 +201,4 @@ jobs: NPM_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' - name: Publish to NPM - run: yarn workspace @concordium/web-sdk npm publish + run: yarn workspace @concordium/web-sdk npm publish --access public