Skip to content

Commit

Permalink
Merge pull request #228 from skalenetwork/fix-github-actions
Browse files Browse the repository at this point in the history
Update Github Actions pipeline, optimize publish script
  • Loading branch information
dmytrotkk authored Dec 23, 2024
2 parents d9ec3c1 + cdff00d commit 6dc6ab7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 97 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Publish NPM package
run: ./scripts/publish_package.sh
run: ../scripts/publish_package.sh
env:
BRANCH: ${{ env.BRANCH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Publish NPM package
run: ./scripts/publish_package.sh
run: ../scripts/publish_package.sh
env:
BRANCH: ${{ env.BRANCH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Publish NPM package
run: ./scripts/publish_package.sh
run: ../scripts/publish_package.sh
env:
BRANCH: ${{ env.BRANCH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Publish NPM package
run: ./scripts/publish_package.sh
run: ../scripts/publish_package.sh
env:
BRANCH: ${{ env.BRANCH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion python/scripts/generate_package_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def calculate_version(release_version):
parts = release_version.strip().split('-')
[main_part, tail_part] = [parts[0], '-'.join(parts[1:])]
tail_parts = tail_part.split('.')
[branch, build_number] = ['.'.join(tail_parts[:-1]), tail_part[-1]]
[branch, build_number] = ['.'.join(tail_parts[:-1]), tail_parts[-1]]
if branch == 'stable':
if int(build_number) == 0:
return main_part
Expand Down
45 changes: 0 additions & 45 deletions typescript/ethers-v5/scripts/publish_package.sh

This file was deleted.

45 changes: 0 additions & 45 deletions typescript/ethers-v6/scripts/publish_package.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ then
exit 2
fi

cd "$(dirname "$0")/.."

BRANCH=$(echo $BRANCH | tr [:upper:] [:lower:] | tr -d [:space:])
VERSION=$(BRANCH=$BRANCH "../scripts/calculate_version.sh")

Expand Down

0 comments on commit 6dc6ab7

Please sign in to comment.