Skip to content

automatically merge to release branch when version number is incremen… #2

automatically merge to release branch when version number is incremen…

automatically merge to release branch when version number is incremen… #2

Workflow file for this run

on:
push:
branches:
- main
name: Update release branch if version incremented
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if version bumped in package.json
run: '
[
"$(git blame -l package.json | grep "\"version\":" | cut -d " " -f 1)"
=
"$(git rev-parse HEAD)"
] &&
git branch -f release &&
git push -f origin release
'