-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f714fa
commit 40c6c0f
Showing
8 changed files
with
110 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish | ||
on: | ||
push: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
package: | ||
- '@acala-network/type-definitions' | ||
- '@acala-network/types' | ||
- '@acala-network/api-derive' | ||
- '@acala-network/api' | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: git config email | ||
run: git config --local user.email [email protected] | ||
|
||
- name: git config name | ||
run: git config --local user.name Bodhibot | ||
|
||
- name: setup node env | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: build packages | ||
run: yarn build | ||
|
||
# Writes token to .yarnrc.yml. If written directly in .yarnrc.yml, it will cause an error | ||
- run: | | ||
echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml | ||
- name: publish ${{ matrix.package }} | ||
run: | | ||
# version containing a hyphen, publish as beta, i.e: 1.0.0-1 | ||
if npm pkg get version --workspace ${{ matrix.package }} | jq '."${{ matrix.package }}"' | grep '-'; then TAG='--tag beta'; fi | ||
yarn workspace ${{ matrix.package }} npm publish --tolerate-republish --access public $TAG | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
- run: | | ||
git checkout ./.yarnrc.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@acala-network/api-derive", | ||
"version": "5.1.1", | ||
"version": "5.1.2-2", | ||
"description": "Additional polkadot.js derives for Acala Network", | ||
"main": "index.js", | ||
"author": "Acala Developers <[email protected]>", | ||
|
@@ -22,12 +22,13 @@ | |
"build": "tsc --build tsconfig.json" | ||
}, | ||
"dependencies": { | ||
"@acala-network/types": "5.1.1" | ||
"@acala-network/types": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"@polkadot/api": "^10.5.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.0.4" | ||
} | ||
}, | ||
"stableVersion": "5.1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{ | ||
"name": "@acala-network/api", | ||
"version": "5.1.1", | ||
"version": "5.1.2-2", | ||
"description": "Acala JS API", | ||
"main": "index.js", | ||
"main": "build/index.js", | ||
"author": "Acala Developers <[email protected]>", | ||
"license": "Apache-2.0", | ||
"files": [ | ||
"build" | ||
], | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
|
@@ -22,13 +25,14 @@ | |
"build": "tsc --build tsconfig.json" | ||
}, | ||
"dependencies": { | ||
"@acala-network/api-derive": "5.1.1", | ||
"@acala-network/types": "5.1.1" | ||
"@acala-network/api-derive": "workspace:*", | ||
"@acala-network/types": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"@polkadot/api": "^10.5.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.0.4" | ||
} | ||
}, | ||
"stableVersion": "5.1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@acala-network/type-definitions", | ||
"version": "5.1.1", | ||
"version": "5.1.2-2", | ||
"description": "Polkadot.js type definations for Acala Network", | ||
"main": "index.js", | ||
"author": "Acala Developers <[email protected]>", | ||
|
@@ -26,5 +26,6 @@ | |
}, | ||
"devDependencies": { | ||
"typescript": "^5.0.4" | ||
} | ||
}, | ||
"stableVersion": "5.1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@acala-network/types", | ||
"version": "5.1.1", | ||
"version": "5.1.2-2", | ||
"description": "Polkadot.js type definations for Acala Network", | ||
"main": "index.js", | ||
"author": "Acala Developers <[email protected]>", | ||
|
@@ -22,7 +22,7 @@ | |
"build": "tsc --build tsconfig.json" | ||
}, | ||
"dependencies": { | ||
"@acala-network/type-definitions": "5.1.1" | ||
"@acala-network/type-definitions": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"@polkadot/api": "^10.5.1" | ||
|
@@ -31,5 +31,6 @@ | |
"@types/websocket": "^1.0.5", | ||
"typescript": "^5.0.4", | ||
"websocket": "^1.0.34" | ||
} | ||
}, | ||
"stableVersion": "5.1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters