Skip to content

Commit c1c25e7

Browse files
whoabuddyclaude
andauthored
ci: add release-please for automated releases (#7)
- Add GitHub Actions workflow for release-please - Configure extra-files to update version in src/index.ts - Sync package.json version to 0.4.0 to match API response - Add x-release-please-version marker for automatic version updates Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bf7fd73 commit c1c25e7

5 files changed

Lines changed: 38 additions & 2 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
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+
release-type: node

.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.4.0"
3+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "worker-logs",
3-
"version": "0.1.0",
3+
"version": "0.4.0",
44
"private": true,
55
"type": "module",
66
"scripts": {

release-please-config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "node",
5+
"changelog-path": "CHANGELOG.md",
6+
"extra-files": [
7+
{
8+
"type": "generic",
9+
"path": "src/index.ts",
10+
"glob": false
11+
}
12+
]
13+
}
14+
}
15+
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ app.get('/', (c) => {
3232
return c.json(
3333
Ok({
3434
service: 'worker-logs',
35-
version: '0.4.0',
35+
version: '0.4.0', // x-release-please-version
3636
description: 'Centralized logging service for Cloudflare Workers',
3737
endpoints: {
3838
'GET /dashboard': 'Web UI for browsing logs (requires admin key)',

0 commit comments

Comments
 (0)