Merge pull request #18 from ykiu/release #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bumps up the patch version, edits README.md, and opens a PR. | |
name: Create release PR | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- run: npm run bump | |
- run: git switch -c release | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Release" | |
- run: git push -f -u origin release | |
- run: gh pr create --title "Release" --body "" || true | |
# || true to silence errors, since gh pr errors when there's already an open PR for the branch. | |
env: | |
GH_TOKEN: ${{ github.token }} |