From 6a4c7ccac9eeb5731f1f448759e418ec17959171 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:36:35 +0800 Subject: [PATCH 1/9] bump v6.0.0 --- README.md | 2 +- packages/api-derive/package.json | 4 ++-- packages/api/package.json | 6 +++--- packages/types/package.json | 2 +- yarn.lock | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 928c2fb..15b058b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import '@acala-network/types'; import { ApiPromise, WsProvider } from '@polkadot/api'; import { options } from '@acala-network/api'; -const provider = new WsProvider('wss://karura.api.onfinality.io/public-ws'); +const provider = new WsProvider('wss://karura-rpc.aca-api.network'); const api = new ApiPromise(options({ provider })); await api.isReady; diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 326766c..f8aec33 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/api-derive", - "version": "6.0.0-34", + "version": "6.0.0", "description": "Additional polkadot.js derives for Acala Network", "author": "Acala Developers ", "license": "Apache-2.0", @@ -27,7 +27,7 @@ "main": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@acala-network/types": "6.0.0-34" + "@acala-network/types": "6.0.0" }, "peerDependencies": { "@polkadot/api": "^10.9.1" diff --git a/packages/api/package.json b/packages/api/package.json index 9b69559..94b0945 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/api", - "version": "6.0.0-34", + "version": "6.0.0", "description": "Acala JS API", "author": "Acala Developers ", "license": "Apache-2.0", @@ -27,8 +27,8 @@ "publish:manual": "npm publish --tolerate-republish --access public" }, "dependencies": { - "@acala-network/api-derive": "6.0.0-34", - "@acala-network/types": "6.0.0-34" + "@acala-network/api-derive": "6.0.0", + "@acala-network/types": "6.0.0" }, "peerDependencies": { "@polkadot/api": "^10.9.1" diff --git a/packages/types/package.json b/packages/types/package.json index 8c58248..b703057 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/types", - "version": "6.0.0-34", + "version": "6.0.0", "description": "Acala types for @polkadot/api", "author": "Acala Developers ", "license": "Apache-2.0", diff --git a/yarn.lock b/yarn.lock index 915ee82..29ad805 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,11 +12,11 @@ __metadata: languageName: node linkType: hard -"@acala-network/api-derive@6.0.0-34, @acala-network/api-derive@workspace:packages/api-derive": +"@acala-network/api-derive@6.0.0, @acala-network/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@acala-network/api-derive@workspace:packages/api-derive" dependencies: - "@acala-network/types": 6.0.0-34 + "@acala-network/types": 6.0.0 typescript: ^5.0.4 peerDependencies: "@polkadot/api": ^10.9.1 @@ -27,15 +27,15 @@ __metadata: version: 0.0.0-use.local resolution: "@acala-network/api@workspace:packages/api" dependencies: - "@acala-network/api-derive": 6.0.0-34 - "@acala-network/types": 6.0.0-34 + "@acala-network/api-derive": 6.0.0 + "@acala-network/types": 6.0.0 typescript: ^5.0.4 peerDependencies: "@polkadot/api": ^10.9.1 languageName: unknown linkType: soft -"@acala-network/types@6.0.0-34, @acala-network/types@workspace:packages/types": +"@acala-network/types@6.0.0, @acala-network/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@acala-network/types@workspace:packages/types" dependencies: From 1bf1a1f65ba463a591e7c590b9827260207ebd20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:42:51 +0800 Subject: [PATCH 2/9] fix publish --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e97f5a3..ae96c04 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,10 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.GH_PAT }} - - name: npm pulish - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: prepare publish + run: | + echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml + - name: pulish run: | yarn install --immutable | grep -v 'YN0013' yarn build From 1eda9ef3f96f20766ff8b250b59524dce3e0cfb1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:49:13 +0800 Subject: [PATCH 3/9] fix publish --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ae96c04..4526d78 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,12 +12,12 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.GH_PAT }} - - name: prepare publish - run: | - echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml - - name: pulish + - name: build run: | yarn install --immutable | grep -v 'YN0013' yarn build + - name: publish + run: | + echo npmAuthToken: "${NPM_TOKEN}" >> .yarnrc.yml yarn publish From 1104fcfdd94a26b509007a36b8edc993af816612 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:53:36 +0800 Subject: [PATCH 4/9] fix --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4526d78..cdb5b30 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,8 @@ jobs: yarn install --immutable | grep -v 'YN0013' yarn build - name: publish + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | echo npmAuthToken: "${NPM_TOKEN}" >> .yarnrc.yml yarn publish From 43b4d9c17d9896552f8bff3abe4380cb71b0f92d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:00:43 +0800 Subject: [PATCH 5/9] fix --- packages/types/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/types/package.json b/packages/types/package.json index b703057..046e78b 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -4,6 +4,10 @@ "description": "Acala types for @polkadot/api", "author": "Acala Developers ", "license": "Apache-2.0", + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org" + }, "type": "module", "scripts": { "generate": "npm run load:meta && npm run generate:defs && npm run generate:meta", From 2db688110802fd54b6ccd2625e58448a9bdfa363 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:06:50 +0800 Subject: [PATCH 6/9] fix --- .yarnrc.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index fe0e35b..a7c7af2 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,8 +1,11 @@ -enableImmutableInstalls: false +nodeLinker: node-modules +enableImmutableInstalls: false enableProgressBars: false -nodeLinker: node-modules +npmPublishAccess: public +npmPublishRegistry: 'https://registry.npmjs.org/' +npmRegistryServer: 'https://registry.npmjs.org/' plugins: - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs From 1700d8a39af2ee1f8faba53879c8efecfa57db8c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:15:09 +0800 Subject: [PATCH 7/9] fix --- .github/workflows/publish.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cdb5b30..3cb1ec5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,17 +9,29 @@ jobs: name: Publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: checkout + uses: actions/checkout@v3 + + - name: setup node env + uses: actions/setup-node@v3 with: - token: ${{ secrets.GH_PAT }} + node-version: 16 + cache: 'yarn' + registry-url: 'https://registry.npmjs.org' + - name: build run: | yarn install --immutable | grep -v 'YN0013' yarn build + - name: publish env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - echo npmAuthToken: "${NPM_TOKEN}" >> .yarnrc.yml + echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml yarn publish + - name: cleanup + run: | + git checkout ./.yarnrc.yml + From dff508de8c3ff83875267f3eade9d85e87fea441 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:23:15 +0800 Subject: [PATCH 8/9] fix --- packages/api-derive/package.json | 4 ---- packages/api/package.json | 4 ---- packages/types/package.json | 4 ---- 3 files changed, 12 deletions(-) diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index f8aec33..2beaec9 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -4,10 +4,6 @@ "description": "Additional polkadot.js derives for Acala Network", "author": "Acala Developers ", "license": "Apache-2.0", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - }, "repository": { "directory": "packages/api-derive", "type": "git", diff --git a/packages/api/package.json b/packages/api/package.json index 94b0945..93ee2d0 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -4,10 +4,6 @@ "description": "Acala JS API", "author": "Acala Developers ", "license": "Apache-2.0", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - }, "repository": { "directory": "packages/api", "type": "git", diff --git a/packages/types/package.json b/packages/types/package.json index 046e78b..b703057 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -4,10 +4,6 @@ "description": "Acala types for @polkadot/api", "author": "Acala Developers ", "license": "Apache-2.0", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - }, "type": "module", "scripts": { "generate": "npm run load:meta && npm run generate:defs && npm run generate:meta", From 3ce6f0d2deb8bf0f79b9dc3a10a5e9fc80687737 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:39:14 +0800 Subject: [PATCH 9/9] fix --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3cb1ec5..bb3c409 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,9 +26,10 @@ jobs: - name: publish env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml + echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml yarn publish - name: cleanup