Skip to content

Commit d6b2f61

Browse files
committed
chore: add release-please workflow for automated versioning
- Add .github/workflows/release-please.yml pinned to exact SHA - Add release-please-config.json for node package type - Add .release-please-manifest.json seeded at current version 0.3.0 - Uses PAT secret RELEASE_PLEASE_TOKEN to allow workflow triggering Closes #3
1 parent be611af commit d6b2f61

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
17+
id: release
18+
with:
19+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
20+
config-file: release-please-config.json
21+
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.3.0"
3+
}

release-please-config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "node",
4+
"packages": {
5+
".": {}
6+
}
7+
}

0 commit comments

Comments
 (0)