Skip to content

Merge pull request #14 from ykiu/release #22

Merge pull request #14 from ykiu/release

Merge pull request #14 from ykiu/release #22

# 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 }}