Skip to content

Commit

Permalink
Update publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Dec 27, 2023
1 parent 2883345 commit 54b04b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 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

0 comments on commit 54b04b7

Please sign in to comment.