Skip to content

Commit eaa6746

Browse files
authored
Merge pull request #6 from shelltime/ci/add-release-please
ci(release): add release-please for automated releases
2 parents 1d1706c + 0be9af3 commit eaa6746

4 files changed

Lines changed: 45 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
config-file: release-please-config.json
19+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.1"
3+
}

lua/shelltime/heartbeat.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local lang = require('shelltime.utils.language')
88
local M = {}
99

1010
-- Plugin version
11-
local PLUGIN_VERSION = '0.1.0'
11+
local PLUGIN_VERSION = '0.0.1' -- x-release-please-version
1212

1313
-- Pending heartbeats queue
1414
local pending_heartbeats = {}

release-please-config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "simple",
6+
"bump-minor-pre-major": true,
7+
"bump-patch-for-minor-pre-major": true,
8+
"changelog-sections": [
9+
{ "type": "feat", "section": "Features" },
10+
{ "type": "fix", "section": "Bug Fixes" },
11+
{ "type": "perf", "section": "Performance Improvements" },
12+
{ "type": "refactor", "section": "Code Refactoring" },
13+
{ "type": "docs", "section": "Documentation" },
14+
{ "type": "test", "section": "Tests" },
15+
{ "type": "chore", "section": "Miscellaneous" }
16+
],
17+
"extra-files": [
18+
"lua/shelltime/heartbeat.lua"
19+
]
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)