From 631198858e4a52b2daefc3f79d4485e78ddb3761 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 23 Feb 2023 17:56:53 +0900 Subject: [PATCH 1/8] ci: add auto publish workflow --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..238f4caf --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: Publish to NPM +on: + push: + tags: + - "*" + release: + types: [released] + +jobs: + publish: + name: Publish + runs-on: self-hosted + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "14" + - run: if [ ! -x "$(command -v yarn)" ]; then npm install -g yarn; fi + + - name: Install dependencies + run: | + yarn cache clean --all + yarn install + + - name: Build + run: yarn run build + + - name: Publish to NPM + run: | + cd packages/finschia + npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} From fce4e1424642193e2261027ddf2b7aa01ddb3e91 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 23 Feb 2023 18:32:08 +0900 Subject: [PATCH 2/8] ci: add if condition to check version --- .github/workflows/publish.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 238f4caf..ba35d257 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,15 @@ jobs: - name: Build run: yarn run build + - name: Check if tag and version match + run: | + if [ "$(git tag --points-at ${{ github.sha }})" == "v$(jq -r .version package.json)" ]; then + echo "Tag and version match. Proceeding with publish." + else + echo "Tag and version do not match. Skipping publish." + exit 1 + fi + - name: Publish to NPM run: | cd packages/finschia From e58cbf666a87146be4d4f565d75b21f91bca9103 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 23 Feb 2023 18:32:41 +0900 Subject: [PATCH 3/8] ci: linting --- .github/workflows/publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ba35d257..646dfb2b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,14 +27,14 @@ jobs: - name: Build run: yarn run build - - name: Check if tag and version match - run: | - if [ "$(git tag --points-at ${{ github.sha }})" == "v$(jq -r .version package.json)" ]; then - echo "Tag and version match. Proceeding with publish." - else - echo "Tag and version do not match. Skipping publish." - exit 1 - fi + - name: Check if tag and version match + run: | + if [ "$(git tag --points-at ${{ github.sha }})" == "v$(jq -r .version packages/finschia/package.json)" ]; then + echo "Tag and version match. Proceeding with publish." + else + echo "Tag and version do not match. Skipping publish." + exit 1 + fi - name: Publish to NPM run: | From f4f4dd14dc5748ff7da7995ebe984d51e947daa1 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 20 Apr 2023 22:25:32 +0900 Subject: [PATCH 4/8] ci: add secret token --- .github/workflows/publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 646dfb2b..995a4de5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,16 +2,17 @@ name: Publish to NPM on: push: tags: - - "*" + - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 + - "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5 release: types: [released] jobs: publish: name: Publish - runs-on: self-hosted + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Node.js uses: actions/setup-node@v3 @@ -41,4 +42,4 @@ jobs: cd packages/finschia npm publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From b844a63d4b65ea61fbe4c3feb300b196a44ec7d1 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 20 Apr 2023 22:31:22 +0900 Subject: [PATCH 5/8] change machine to ubuntu --- .github/workflows/finschia-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/finschia-test.yml b/.github/workflows/finschia-test.yml index 0636c8bb..ea67b3b4 100644 --- a/.github/workflows/finschia-test.yml +++ b/.github/workflows/finschia-test.yml @@ -9,7 +9,7 @@ on: jobs: tests: name: Run tests - runs-on: self-hosted + runs-on: ubuntu-latest steps: - name: Check out Git repository From 8e552de6d2a515060d904691b6949735d5f562ed Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 20 Apr 2023 23:20:04 +0900 Subject: [PATCH 6/8] ci: add registry option to enable npm token --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 995a4de5..8368b309 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: "14" + registry-url: 'https://registry.npmjs.org' - run: if [ ! -x "$(command -v yarn)" ]; then npm install -g yarn; fi - name: Install dependencies From b564fcacd082a2c9ed5910688328f4e0ed14889b Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Fri, 21 Apr 2023 15:46:43 +0900 Subject: [PATCH 7/8] chore: add changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f7e0fd..fff82a77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ and this project adheres to - [\#80](https://github.com/Finschia/finschia-js/pull/80) add MsgInstantiateContract2 - [\#81](https://github.com/Finschia/finschia-js/pull/81) add git PR template +- [\#78](https://github.com/Finschia/finschia-js/pull/78) add auth publish ci on + new tag, release ### Changed From 8c589372b4412780d6961f31cc5288bfe9ff1d14 Mon Sep 17 00:00:00 2001 From: "jinseong.cho" Date: Thu, 27 Apr 2023 11:58:08 +0900 Subject: [PATCH 8/8] lint: add prettier ignore to CHANGELOG --- .prettierignore | 1 + CHANGELOG.md | 82 +++++++++++++++++-------------------------------- 2 files changed, 29 insertions(+), 54 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..83b69470 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +CHANGELOG.md \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 27245c5d..e3a6ebeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,33 +1,24 @@ # CHANGELOG -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to -[Semantic Versioning](https://semver.org/spec/v2.0.0.html). +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Added -- [\#69](https://github.com/Finschia/finschia-js/pull/69) apply the changes of - `x/token` and `x/collection` protos -- [\#71](https://github.com/Finschia/finschia-js/pull/71) @lbmjs/finschia: Add - custom GetBlockWithTxs for lbm -- [\#77](https://github.com/Finschia/finschia-js/pull/77) @lbmjs/finschia: - Enable amino sign store msgs in `wasm` and `wasmplus` -- [\#80](https://github.com/Finschia/finschia-js/pull/80) add - MsgInstantiateContract2 +- [\#69](https://github.com/Finschia/finschia-js/pull/69) apply the changes of `x/token` and `x/collection` protos +- [\#71](https://github.com/Finschia/finschia-js/pull/71) @lbmjs/finschia: Add custom GetBlockWithTxs for lbm +- [\#77](https://github.com/Finschia/finschia-js/pull/77) @lbmjs/finschia: Enable amino sign store msgs in `wasm` and `wasmplus` +- [\#80](https://github.com/Finschia/finschia-js/pull/80) add MsgInstantiateContract2 - [\#81](https://github.com/Finschia/finschia-js/pull/81) add git PR template -- [\#78](https://github.com/Finschia/finschia-js/pull/78) add auth publish ci on - new tag, release -- [\#87](https://github.com/Finschia/finschia-js/pull/87) @lbmjs/finschia: add - tests for grpc errors in collection, token +- [\#78](https://github.com/Finschia/finschia-js/pull/78) add auth publish ci on new tag, release +- [\#87](https://github.com/Finschia/finschia-js/pull/87) @lbmjs/finschia: add tests for grpc errors in collection, token ### Changed -- [\#84](https://github.com/Finschia/finschia-js/pull/84) Bumpup cosmjs to - 0.30.1 -- [\#82](https://github.com/Finschia/finschia-js/pull/82) prepare open (change - lbm to finschia) +- [\#84](https://github.com/Finschia/finschia-js/pull/84) Bumpup cosmjs to 0.30.1 +- [\#82](https://github.com/Finschia/finschia-js/pull/82) prepare open (change lbm to finschia) ### Deprecated @@ -35,10 +26,8 @@ and this project adheres to ### Fixed -- [\#73](https://github.com/Finschia/finschia-js/pull/73) fix the local unit - test error -- [\#88](https://github.com/Finschia/finschia-js/pull/88) apply changed event in - finschia v1.0.0-rc6 to pass tests +- [\#73](https://github.com/Finschia/finschia-js/pull/73) fix the local unit test error +- [\#88](https://github.com/Finschia/finschia-js/pull/88) apply changed event in finschia v1.0.0-rc6 to pass tests ### Security @@ -46,36 +35,29 @@ and this project adheres to ### Added -- [\#61](https://github.com/Finschia/finschia-js/pull/61) @lbmjs/finschia: Add - query minimum gas price -- [\#58](https://github.com/Finschia/finschia-js/pull/58) @lbmjs/finschia: Add - test foundation amino +- [\#61](https://github.com/Finschia/finschia-js/pull/61) @lbmjs/finschia: Add query minimum gas price +- [\#58](https://github.com/Finschia/finschia-js/pull/58) @lbmjs/finschia: Add test foundation amino ## [v0.7.1] - 2023-01-10 ### Fixed -- [\#54](https://github.com/Finschia/finschia-js/pull/54) @lbmjs/finschia: Fix - not to import wrong execute msg +- [\#54](https://github.com/Finschia/finschia-js/pull/54) @lbmjs/finschia: Fix not to import wrong execute msg ## [v0.7.0] - 2022-12-08 ### Added -- [\#44](https://github.com/Finschia/finschia-js/pull/44) @lbmjs/finshia: Add - amino messages to lbm specific modules, support changed foundation module -- [\#47](https://github.com/Finschia/finschia-js/pull/47) @lbmjs/finshia: Add - message encode object interface to token, collection, foundation module +- [\#44](https://github.com/Finschia/finschia-js/pull/44) @lbmjs/finshia: Add amino messages to lbm specific modules, support changed foundation module +- [\#47](https://github.com/Finschia/finschia-js/pull/47) @lbmjs/finshia: Add message encode object interface to token, collection, foundation module ### Removed -- [\#43](https://github.com/Finschia/finschia-js/pull/43) chore: remove unused - scripts and ci files +- [\#43](https://github.com/Finschia/finschia-js/pull/43) chore: remove unused scripts and ci files ### Fixed -- [\#49](https://github.com/Finschia/finschia-js/pull/49) fix: change not to - override rpc server address as 26657 +- [\#49](https://github.com/Finschia/finschia-js/pull/49) fix: change not to override rpc server address as 26657 ## [v0.4.0] - 2022-10-07 @@ -86,27 +68,20 @@ and this project adheres to ### Added - [\#18](https://github.com/Finschia/finschia-js/pull/18) ci: add unittest CI -- [\#35](https://github.com/Finschia/finschia-js/pull/35) ci: run simapp and - enable simapp test in GitHub action +- [\#35](https://github.com/Finschia/finschia-js/pull/35) ci: run simapp and enable simapp test in GitHub action ### Changed -- [\#20](https://github.com/Finschia/finschia-js/pull/20) cosmjs: bump up - v0.28.1 -- [\#22](https://github.com/Finschia/finschia-js/pull/22) cosmjs: bump up - v0.28.4 -- [\#37](https://github.com/Finschia/finschia-js/pull/37) merge stargate and - cosmwasm-stargate into finschia -- [\#39](https://github.com/Finschia/finschia-js/pull/39) delete stargate, - cosmwasm-stargate -- [\#38](https://github.com/Finschia/finschia-js/pull/38) support lbm-sdk-rc8 - and bump up cosmjs 0.29 - - add token/collection/foundation module APIs +- [\#20](https://github.com/Finschia/finschia-js/pull/20) cosmjs: bump up v0.28.1 +- [\#22](https://github.com/Finschia/finschia-js/pull/22) cosmjs: bump up v0.28.4 +- [\#37](https://github.com/Finschia/finschia-js/pull/37) merge stargate and cosmwasm-stargate into finschia +- [\#39](https://github.com/Finschia/finschia-js/pull/39) delete stargate, cosmwasm-stargate +- [\#38](https://github.com/Finschia/finschia-js/pull/38) support lbm-sdk-rc8 and bump up cosmjs 0.29 +- add token/collection/foundation module APIs ### Fixed -- [\#19](https://github.com/Finschia/finschia-js/pull/19) @lbmjs/stargate: fix - multisignature spec file error +- [\#19](https://github.com/Finschia/finschia-js/pull/19) @lbmjs/stargate: fix multisignature spec file error ## 0.1.0 - 2022-03-29 @@ -116,8 +91,7 @@ and this project adheres to ### Added - @lbmjs/stargate: Add `x/token` module apis ([#7]) -- @lbmjs/cosmwasm-stargate: Add `MsgStoreCodeAndInstantiateContract` function - and `MsgUpdateContractStatus` tx encoding ([#7]) +- @lbmjs/cosmwasm-stargate: Add `MsgStoreCodeAndInstantiateContract` function and `MsgUpdateContractStatus` tx encoding ([#7]) ### Changed