Skip to content

Commit 39b08d6

Browse files
authored
Merge pull request #25 from bucketeer-io/fix/ci-release
ci: introduce release-please
2 parents 2a07de3 + 324dbd0 commit 39b08d6

File tree

5 files changed

+48
-41
lines changed

5 files changed

+48
-41
lines changed

.github/workflows/prepare-release.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/release-package.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
11
name: release package
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
branches:
6+
- main
67

78
jobs:
9+
release_please:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
name: Release Please
14+
runs-on: ubuntu-latest
15+
outputs:
16+
release_created: ${{ steps.release.outputs.release_created }}
17+
steps:
18+
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
19+
id: release
20+
with:
21+
token: ${{ secrets.WORKFLOW_TOKEN }} # We need to set the PAT so the update changelog docs page workflow can be triggerede PAT so the update changelog docs page workflow can be triggered
22+
823
publish:
24+
needs: [release_please]
25+
if: ${{ needs.release_please.outputs.release_created }}
926
runs-on: ubuntu-latest
1027
permissions:
1128
contents: read
1229
id-token: write
1330
steps:
14-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- name: Checkout
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1533
- name: Setup Node.js
1634
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1735
with:

.release-please-manifest.json

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

CHANGELOG.md

Whitespace-only changes.

release-please-config.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"bump-minor-pre-major": true,
3+
"bump-patch-for-minor-pre-major": true,
4+
"draft": false,
5+
"prerelease": false,
6+
"draft-pull-request": true,
7+
"changelog-sections": [
8+
{ "type": "feat", "section": "Features", "hidden": false },
9+
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
10+
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
11+
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
12+
{ "type": "revert", "section": "Reverts", "hidden": false },
13+
{ "type": "build", "section": "Build System", "hidden": false }
14+
],
15+
"release-type": "node",
16+
"pull-request-title-pattern": "chore: release v${version}",
17+
"packages": {
18+
".": {
19+
"changelog-path": "CHANGELOG.md",
20+
"package-name": "@bucketeer/docs-local-mcp-server"
21+
}
22+
},
23+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
24+
}

0 commit comments

Comments
 (0)