ci(release): setup release-please

Setup release-please to handle version bumping, changelog generation,
and creating releases on GitHub.
This commit is contained in:
2023-04-25 01:09:53 +01:00
parent 803374178f
commit 15c69ef8d7
4 changed files with 40 additions and 1 deletions

16
.github/workflows/release-please.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
---
on: push
jobs:
release-please:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }} # e.g. v1.0.0
version: ${{ steps.release-please.outputs.version }} # e.g. 1.0.0
steps:
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
command: manifest

View File

@@ -0,0 +1,3 @@
{
".": "0.1.1"
}

View File

@@ -0,0 +1,18 @@
{
"bootstrap-sha": "e3fdaa7f673a8b8d43c2ac16f8a3cdfe8b3ab6c1",
"last-release-sha": "e3fdaa7f673a8b8d43c2ac16f8a3cdfe8b3ab6c1",
"packages": {
".": {
"release-type": "simple",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"extra-files": [
"yank-indent.el"
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

View File

@@ -3,8 +3,10 @@
;; Author: Jim Myhrberg <contact@jimeh.me>
;; URL: https://github.com/jimeh/yank-indent
;; Keywords: convenience, yank, indent
;; Version: 0.1.0
;; Package-Requires: ((emacs "25.1"))
;; x-release-please-start-version
;; Version: 0.1.0
;; x-release-please-end
;; This file is not part of GNU Emacs.