From 2883345a43533e4cf066a221c92141ad7cf1e363 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 27 Dec 2023 13:26:46 +0000 Subject: [PATCH 1/2] Fix connect cmd options --- cli/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index 891ede9..4cda916 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -43,8 +43,14 @@ program.command('connect') .requiredOption('-e1, --endpoint-1 ', 'sChain 1 endpoint') .requiredOption('-e2, --endpoint-2 ', 'sChain 2 endpoint') .action(async (options) => { - const opts = options.opts() - await connect(opts.name1, opts.name2, opts.privateKey1, opts.privateKey2, opts.endpoint1, opts.endpoint2) + await connect( + options.name1, + options.name2, + options.privateKey1, + options.privateKey2, + options.endpoint1, + options.endpoint2 + ) }); program.parse(); From 54b04b741aac94ca8f4f586a0fde37fe28688b26 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 27 Dec 2023 15:25:47 +0000 Subject: [PATCH 2/2] Update publish pipeline --- .github/workflows/publish.yml | 25 +++++++++++++------------ .github/workflows/test.yml | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8565e82..ad57b24 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,19 +46,20 @@ jobs: - name: Yarn build run: | yarn prepack - # - name: Publish on npm - # run: | - # if [[ "$BRANCH" == "stable" ]]; then - # npm publish --access public - # else - # npm version --no-git-tag-version ${{ env.VERSION }} --allow-same-version - # npm publish --access public --tag ${{ env.BRANCH }} - # fi - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish on npm + run: | + if [[ "$BRANCH" == "stable" ]]; then + npm publish --access public + else + npm version --no-git-tag-version ${{ env.VERSION }} --allow-same-version + npm publish --access public --tag ${{ env.BRANCH }} + fi + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Build CLI run: | bun build:exec + mv ima ima-${{ env.VERSION }} - name: Create Release uses: actions/create-release@v1 env: @@ -73,5 +74,5 @@ jobs: with: tag_name: ${{ env.VERSION }} name: ${{ env.VERSION }} - files: ima - draft: true \ No newline at end of file + files: ima-${{ env.VERSION }} + prerelease: ${{ env.PRERELEASE }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e4d90f..fedd58c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [18, 20] env: MAINNET_ENDPOINT: http://127.0.0.1:8545 SCHAIN_ENDPOINT: http://127.0.0.1:15000