Skip to content

Commit acd991c

Browse files
authored
chore: automate release with release-please (#319)
* chore: bootstrap releases for path: . * ci: add release workflow * chore: setup release-please manifest * chore: add release-type * ci: set chore/release-please as target branch * chore: set initial version to 0.0.0 * chore: use bootstrap-sha * chore: use last-release-sha * revert: target branch for release workflow
1 parent 53ee880 commit acd991c

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- release/*
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: google-github-actions/release-please-action@v4
18+
with:
19+
target-branch: ${{ github.ref_name }}

.release-please-manifest.json

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

Sources/_Helpers/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package let version = "2.5.1"
1+
package let version = "2.5.1" // {x-release-please-version}

release-please-config.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"packages": {
3+
".": {
4+
"changelog-path": "CHANGELOG.md",
5+
"bump-minor-pre-major": false,
6+
"bump-patch-for-minor-pre-major": false,
7+
"draft": false,
8+
"prerelease": false,
9+
"release-type": "simple",
10+
"extra-files": [
11+
"Sources/_Helpers/Version.swift"
12+
]
13+
}
14+
},
15+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
16+
"last-release-sha": "60bd77ac56a40c89bd0de75c5be221187cf7f493"
17+
}

0 commit comments

Comments
 (0)