chore(release): labeled pull request triggers package version change
This commit is contained in:
31
.github/workflows/package-version.yml
vendored
Normal file
31
.github/workflows/package-version.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: "update package version"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
minor:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.label.name == "release minor" }}
|
||||||
|
steps:
|
||||||
|
- name: check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: increment minor version
|
||||||
|
run: |
|
||||||
|
npm version minor
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: "release: automated change"
|
||||||
|
patch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.label.name == "release patch" }}
|
||||||
|
steps:
|
||||||
|
- name: check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: increment patch version
|
||||||
|
run: |
|
||||||
|
npm version patch
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: "release: automated change"
|
||||||
Reference in New Issue
Block a user