-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.34 KB
/
bump.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Bump Version and Create PR
on:
workflow_dispatch:
inputs:
BUMP_TYPE:
description: "Select the bump type"
required: true
type: choice
options:
- path
- minor
- major
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install modules
run: |
npm ci --prefix enabler
npm version --prefix enabler ${{ inputs.BUMP_TYPE }}
npm ci --prefix processor
npm version --prefix processor ${{ inputs.BUMP_TYPE }}
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'chore: bump version'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: bump version"
branch: "bump-version-branch"
title: "Bump version"
body: "This PR bumps the version. This is executed by a GitHub Action `bump.yaml`."
labels: "version bump"