Skip to content

Commit d8fdd74

Browse files
authored
ci(batch-d): release-please automation (node release type, Conventional Commits, Keep-a-Changelog) (#127)
1 parent 6ba5df1 commit d8fdd74

4 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release-please
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
# Prevent overlapping release-please runs on rapid main pushes. The action
8+
# is idempotent (updates the same release PR), but serializing keeps logs
9+
# easier to follow and avoids transient GitHub API races.
10+
concurrency:
11+
group: release-please-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
jobs:
19+
release-please:
20+
name: Release PR maintenance
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Run release-please
24+
uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
25+
with:
26+
# Default GITHUB_TOKEN is sufficient for opening/updating the
27+
# release PR and cutting tags/releases on merge.
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
config-file: release-please-config.json
30+
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+
".": "6.0.0"
3+
}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ Contributions are welcome if they keep the project accurate, maintainable, and a
161161
- [Code of Conduct](CODE_OF_CONDUCT.md)
162162
- [Security Policy](SECURITY.md)
163163

164+
## Releases
165+
166+
Releases are automated via [release-please](https://github.com/googleapis/release-please). Conventional Commits landed on `main` drive version bumps and CHANGELOG entries; merging the open "Release candidate" PR cuts a tagged release. Manual `npm publish` is not required for routine releases.
167+
164168
## License
165169

166170
MIT. See [LICENSE](LICENSE).

release-please-config.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "node",
4+
"include-v-in-tag": true,
5+
"changelog-path": "CHANGELOG.md",
6+
"pull-request-header": "Release candidate for `oc-codex-multi-auth`. Squash-merge to cut the release.",
7+
"packages": {
8+
".": {
9+
"release-type": "node",
10+
"package-name": "oc-codex-multi-auth",
11+
"bootstrap-sha": "6ba5df19741f057b722d755271e4c9a22b6709bc",
12+
"initial-version": "6.0.0",
13+
"changelog-path": "CHANGELOG.md",
14+
"changelog-sections": [
15+
{ "type": "feat", "section": "Added" },
16+
{ "type": "fix", "section": "Fixed" },
17+
{ "type": "perf", "section": "Changed" },
18+
{ "type": "refactor", "section": "Changed" },
19+
{ "type": "revert", "section": "Removed" },
20+
{ "type": "docs", "section": "Documentation", "hidden": false },
21+
{ "type": "ci", "section": "Internal", "hidden": true },
22+
{ "type": "test", "section": "Internal", "hidden": true },
23+
{ "type": "build", "section": "Internal", "hidden": true },
24+
{ "type": "chore", "section": "Internal", "hidden": true }
25+
]
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)