-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (56 loc) · 1.76 KB
/
version-bump.yaml
File metadata and controls
67 lines (56 loc) · 1.76 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Version Bump
on:
workflow_dispatch:
inputs:
bump:
description: 'Version bump type'
required: true
type: choice
options:
- patch
- minor
- major
jobs:
version:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm ci
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump versions with Lerna
run: |
npx lerna version ${{ github.event.inputs.bump }} \
--yes \
--no-private \
--conventional-commits \
--no-push \
--no-git-tag-version
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
branch: release/version-bump
commit-message: "chore: release version bump (${{ github.event.inputs.bump }})"
title: "chore: release version bump (${{ github.event.inputs.bump }})"
body: |
## Version Bump: `${{ github.event.inputs.bump }}`
Auto-generated by the **Version Bump** workflow.
### What happens after merge?
- Git tag is created from the version in `lerna.json`
- GitHub Release is created
- Packages are published to npm
Please review version changes and CHANGELOGs before merging.
labels: release