-
Notifications
You must be signed in to change notification settings - Fork 0
ci(release): add release-please for automated releases #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Release | ||
|
|
||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| ".": "0.0.1" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "packages": { | ||
| ".": { | ||
| "release-type": "simple", | ||
| "bump-minor-pre-major": true, | ||
| "bump-patch-for-minor-pre-major": true, | ||
| "changelog-sections": [ | ||
| { "type": "feat", "section": "Features" }, | ||
| { "type": "fix", "section": "Bug Fixes" }, | ||
| { "type": "perf", "section": "Performance Improvements" }, | ||
| { "type": "refactor", "section": "Code Refactoring" }, | ||
| { "type": "docs", "section": "Documentation" }, | ||
| { "type": "test", "section": "Tests" }, | ||
| { "type": "chore", "section": "Miscellaneous" } | ||
| ], | ||
| "extra-files": [ | ||
| "lua/shelltime/heartbeat.lua" | ||
| ] | ||
|
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While using just the file path in "extra-files": [
{
"type": "re",
"path": "lua/shelltime/heartbeat.lua",
"pattern": "local PLUGIN_VERSION = '(?<version>.*)' -- x-release-please-version"
}
] |
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
changelog-sectionslist is missing some common conventional commit types likebuild,ci,style, andrevert. Including them will create a more comprehensive and organized changelog. The current PR, for example, has acitype and it would be good to have it reflected in its own section in the changelog.{ "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "perf", "section": "Performance Improvements" }, { "type": "refactor", "section": "Code Refactoring" }, { "type": "revert", "section": "Reverts" }, { "type": "docs", "section": "Documentation" }, { "type": "style", "section": "Styles" }, { "type": "test", "section": "Tests" }, { "type": "build", "section": "Build System" }, { "type": "ci", "section": "Continuous Integration" }, { "type": "chore", "section": "Miscellaneous" }