Skip to content

Commit 16ce366

Browse files
committed
Add automatic release notes, major tag bump
Improve releases by generating release notes and bumping the major tag (ex, `v1`, `v2`) when new versions are published. Example: https://github.com/secondlife/action-nfpm/releases 1. Approve and merge PRs into the `main` branch. Add `enhanacement` `bug` or `breaking-change` labels to them as specified in release.yaml 2. When a new version is to be published, generate a new release with a cooresponding semver compatible tag (ex: v1.2.0) from the repository release pages, autogenerate notes. 3. Boom, magic. New release v1.2.0 published, v1 tag updated.
1 parent 1343c4c commit 16ce366

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- dependabot
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- semver-major
11+
- breaking-change
12+
- title: New Features 🎉
13+
labels:
14+
- semver-minor
15+
- enhancement
16+
- title: Other Changes
17+
labels:
18+
- '*'

.github/workflows/bump-major.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Bump major tag
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
bump:
9+
uses: secondlife/update-major-tag-workflow/.github/workflows/update-major-tag.yaml@v1

0 commit comments

Comments
 (0)