Skip to content

Commit

Permalink
Merge pull request #41 from cybozu/avoid-branch-protection
Browse files Browse the repository at this point in the history
Create PR updates ES packages version to avoid branch protection
  • Loading branch information
sosukesuzuki authored Oct 1, 2023
2 parents bd83d45 + a55e950 commit 3d08366
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions es/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,11 @@ VERSION=${TAG#v}
npm version $VERSION --no-git-tag-version --workspaces
npm publish --workspaces --access=public

# print current branch for debugging
git rev-parse --abbrev-ref HEAD
# print diff for debugging
git diff

# create a branch and push it to github
git checkout -b update-version-$VERSION
git add .
git commit -m "Release $VERSION"
git push origin update-version-$VERSION

# print branch for debugging
git branch -a

git branch tmp
git checkout -b main origin/main
git merge tmp
git push origin main
# create a PR
gh pr create --title "Update ES packages version to $VERSION" --body "Update version to $VERSION" --base main --head update-version-$VERSION

0 comments on commit 3d08366

Please sign in to comment.