Skip to content

Commit

Permalink
Merge pull request #75 from skalenetwork/fix-community-locker-add-cli
Browse files Browse the repository at this point in the history
Fix community locker add cli
  • Loading branch information
dmytrotkk authored Dec 27, 2023
2 parents 6e3fa48 + 54b04b7 commit 128995b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -73,5 +74,5 @@ jobs:
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
files: ima
draft: true
files: ima-${{ env.VERSION }}
prerelease: ${{ env.PRERELEASE }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ program.command('connect')
.requiredOption('-e1, --endpoint-1 <string>', 'sChain 1 endpoint')
.requiredOption('-e2, --endpoint-2 <string>', '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();
Expand Down

0 comments on commit 128995b

Please sign in to comment.