Skip to content

Commit e255ad8

Browse files
authored
chore: initial attempt to setup release please (#11)
Signed-off-by: Nicklas Lundin <[email protected]>
1 parent 778e8e0 commit e255ad8

File tree

4 files changed

+100
-0
lines changed

4 files changed

+100
-0
lines changed

.github/workflows/release-please.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Run Release Please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
11+
# Release-please creates a PR that tracks all changes
12+
steps:
13+
- uses: google-github-actions/release-please-action@v3
14+
id: release
15+
with:
16+
release-type: simple
17+
command: manifest
18+
token: ${{secrets.GITHUB_TOKEN}}
19+
default-branch: main
20+
21+
- name: Dump Release Please Output
22+
env:
23+
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
24+
run: |
25+
echo "$RELEASE_PLEASE_OUTPUT"
26+
27+
# Outputs are namespaced by package when using a manifest in Release Please
28+
outputs:
29+
release_created: ${{ steps.release.outputs['OpenFeature--release_created'] }}
30+
# Version doesn't include `v` as a prefix. This is undocumented
31+
version: ${{ steps.release.outputs['OpenFeature--version'] }}
32+
upload_url: ${{ steps.release.outputs['OpenFeature--upload_url'] }}

.release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "Sources": "0.0.1" }

Sources/version.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

release-please-config.json

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"bootstrap-sha": "bc555337044c0b52f8e7cc79d62024c31c437474",
3+
"packages": {
4+
"Sources": {
5+
"release-type": "simple",
6+
"bump-minor-pre-major": true,
7+
"bump-patch-for-minor-pre-major": true,
8+
"versioning": "default"
9+
}
10+
},
11+
"changelog-sections": [
12+
{
13+
"type": "fix",
14+
"section": "🐛 Bug Fixes"
15+
},
16+
{
17+
"type": "feat",
18+
"section": "✨ New Features"
19+
},
20+
{
21+
"type": "chore",
22+
"section": "🧹 Chore"
23+
},
24+
{
25+
"type": "docs",
26+
"section": "📚 Documentation"
27+
},
28+
{
29+
"type": "perf",
30+
"section": "🚀 Performance"
31+
},
32+
{
33+
"type": "build",
34+
"hidden": true,
35+
"section": "🛠️ Build"
36+
},
37+
{
38+
"type": "deps",
39+
"section": "📦 Dependencies"
40+
},
41+
{
42+
"type": "ci",
43+
"hidden": true,
44+
"section": "🚦 CI"
45+
},
46+
{
47+
"type": "refactor",
48+
"section": "🔄 Refactoring"
49+
},
50+
{
51+
"type": "revert",
52+
"section": "🔙 Reverts"
53+
},
54+
{
55+
"type": "style",
56+
"hidden": true,
57+
"section": "🎨 Styling"
58+
},
59+
{
60+
"type": "test",
61+
"hidden": true,
62+
"section": "🧪 Tests"
63+
}
64+
],
65+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
66+
}

0 commit comments

Comments
 (0)