Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andykog authored Dec 4, 2024
1 parent 9a4bf27 commit 1e32091
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ jobs:
- run: node scripts/bump-version.js
- run: |
VERSION=$(node -p "require('./lerna.json').version")
BRANCH="bump-version-$VERSION"
gh auth setup-git
git config --global user.name 'Release'
git config --global user.email '[email protected]'
git checkout -b "bump-version-$VERSION"
git checkout -b $BRANCH
git commit -am "chore: Bump version ($VERSION)"
git push --set-upstream origin "bump-version-$VERSION"
git push --set-upstream origin $BRANCH
PR_URL="$(gh pr create --title "chore: Bump version ($VERSION)" --body 'This is automatic PR to bump version')"
gh pr merge --auto --squash "$PR_URL"
HEAD_SHA=$(gh api repos/${GITHUB_REPOSITORY}/commits/$HEAD_BRANCH --jq '.sha')
HEAD_SHA=$(gh api repos/${GITHUB_REPOSITORY}/commits/$BRANCH --jq '.sha')
gh api repos/${GITHUB_REPOSITORY}/check-runs \
-F name="test" \
-F head_sha="$HEAD_SHA" \
Expand Down

0 comments on commit 1e32091

Please sign in to comment.