mirror of
https://github.com/tompro/sattle.git
synced 2026-08-26 23:05:58 +00:00
ci: release-please for version bumps, changelog and release tagging
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
# release-please: watches conventional commits on main, opens (and keeps
|
||||||
|
# updating) a release PR that bumps the version and assembles the
|
||||||
|
# changelog. Merging that PR creates the vX.Y.Z tag and the GitHub
|
||||||
|
# release. Works with branch protection: the release itself lands as an
|
||||||
|
# ordinary PR; no direct pushes to main are needed.
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-please:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: googleapis/release-please-action@v4
|
||||||
|
with:
|
||||||
|
config-file: release-please-config.json
|
||||||
|
manifest-file: .release-please-manifest.json
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
".": "0.0.1"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to sattle are documented in this file. The format is
|
||||||
|
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
||||||
|
releases are automated with
|
||||||
|
[release-please](https://github.com/googleapis/release-please) from
|
||||||
|
conventional commits: it maintains a release PR that bumps `package.json`
|
||||||
|
and updates this file; merging that PR tags `vX.Y.Z` and creates the
|
||||||
|
GitHub release.
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
||||||
|
"packages": {
|
||||||
|
".": {
|
||||||
|
"release-type": "node",
|
||||||
|
"bump-minor-pre-major": true,
|
||||||
|
"bump-patch-for-minor-pre-major": true,
|
||||||
|
"include-v-in-tag": true,
|
||||||
|
"draft": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user