diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e97f5a3..bb3c409 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,14 +9,30 @@ 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 }} - - name: npm pulish - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + 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_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml yarn publish + - name: cleanup + run: | + git checkout ./.yarnrc.yml + 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 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..2beaec9 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,13 +1,9 @@ { "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", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - }, "repository": { "directory": "packages/api-derive", "type": "git", @@ -27,7 +23,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..93ee2d0 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,13 +1,9 @@ { "name": "@acala-network/api", - "version": "6.0.0-34", + "version": "6.0.0", "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", @@ -27,8 +23,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: