-
-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (34 loc) · 1.24 KB
/
patch-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Patch Release
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Bump package version
id: bump-version
run: echo "VERSION=$(npm version patch --git-tag-version false)" >> $GITHUB_OUTPUT
- name: Check updated version
run: echo $VERSION
env:
VERSION: ${{ steps.bump-version.outputs.VERSION }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_PAT }}
commit-message: "Bump: package version to ${{ steps.bump-version.outputs.VERSION }}"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
signoff: false
branch: "bump/package/${{ steps.bump-version.outputs.VERSION }}"
labels: |
chore
bump
delete-branch: true
title: "Bump: package version to ${{ steps.bump-version.outputs.VERSION }}"