Skip to content

Commit

Permalink
dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-bubu committed Mar 5, 2024
1 parent 1cc5cce commit 7afec6e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ jobs:
exit 1
fi
bump-version:
needs: [ template-e2e, template-image-check ]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
#needs: [ template-e2e, template-image-check ]
#if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
name: Bump SDK Version
runs-on: ubuntu-22.04
steps:
Expand All @@ -152,25 +152,24 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install tools
run: npm i -g semver
- name: Configure Git
run: |
git config --global user.name "galachain-release-bot"
git config --global user.email "[email protected]"
- name: Set version from tag
run: |
TAG=$(git describe --tags --abbrev=0)
VERSION=${TAG:1}
#TAG=$(git describe --tags --abbrev=0)
VERSION=1.0.18
echo "TAG: $TAG"
echo "VERSION: $VERSION"
echo "NEW_SDK_VERSION=$VERSION" >> $GITHUB_ENV
./unifyVersions.js ${{ env.NEW_SDK_VERSION }}
npm i
git checkout -b test-branch-${{ env.NEW_SDK_VERSION }}
git add .
git commit -a -m "Bump version to ${{ env.NEW_SDK_VERSION }}"
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG
# git tag -a "$TAG" -m "Release $TAG"
git push
publish:
name: Publish Release
needs: [ bump-version ]
Expand Down

0 comments on commit 7afec6e

Please sign in to comment.