Skip to content

Commit

Permalink
feat: add release-please workflow
Browse files Browse the repository at this point in the history
This adds a workflow to automatically generate release PRs using
release-please. The workflow is triggered on push to the main branch
and will generate a PR with the release notes for the changes since
the last release.

Refs: #23
Signed-off-by: Jaremy Hatler <hatler.jaremy@gmail.com>
  • Loading branch information
jhatler committed Dec 22, 2023
1 parent cc3dd50 commit d823136
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release-please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write
id-token: write
packages: write

jobs:
release-please:
runs-on: ubuntu-latest
environment: main
steps:
- name: Process Release
uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.1"
}
31 changes: 31 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"plugins": [
"sentence-case"
],
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"bootstrap-sha": "c3c2168fc215a14e8fb1a4b1ebd4c3d7a6614c7b",
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation" },
{ "type": "style", "section": "Styles", "hidden": false },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
],
"include-component-in-tag": true,
"include-v-in-tag": true,
"initial-version": "0.0.1",
"packages": {
".": {
"release-type": "simple",
"package-name": "gentoo-precision-7540"
}
}
}

0 comments on commit d823136

Please sign in to comment.