diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 0000000..cb3d923 --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,32 @@ +on: + push: + branches: + - main + +name: Run Release Please +jobs: + release-please: + runs-on: ubuntu-latest + + # Release-please creates a PR that tracks all changes + steps: + - uses: google-github-actions/release-please-action@v3 + id: release + with: + release-type: simple + command: manifest + token: ${{secrets.GITHUB_TOKEN}} + default-branch: main + + - name: Dump Release Please Output + env: + RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }} + run: | + echo "$RELEASE_PLEASE_OUTPUT" + + # Outputs are namespaced by package when using a manifest in Release Please + outputs: + release_created: ${{ steps.release.outputs['OpenFeature--release_created'] }} + # Version doesn't include `v` as a prefix. This is undocumented + version: ${{ steps.release.outputs['OpenFeature--version'] }} + upload_url: ${{ steps.release.outputs['OpenFeature--upload_url'] }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..3820fe2 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{ "Sources": "0.0.1" } diff --git a/Sources/version.txt b/Sources/version.txt new file mode 100644 index 0000000..8a9ecc2 --- /dev/null +++ b/Sources/version.txt @@ -0,0 +1 @@ +0.0.1 \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..95fba86 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,66 @@ +{ + "bootstrap-sha": "bc555337044c0b52f8e7cc79d62024c31c437474", + "packages": { + "Sources": { + "release-type": "simple", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "versioning": "default" + } + }, + "changelog-sections": [ + { + "type": "fix", + "section": "๐Ÿ› Bug Fixes" + }, + { + "type": "feat", + "section": "โœจ New Features" + }, + { + "type": "chore", + "section": "๐Ÿงน Chore" + }, + { + "type": "docs", + "section": "๐Ÿ“š Documentation" + }, + { + "type": "perf", + "section": "๐Ÿš€ Performance" + }, + { + "type": "build", + "hidden": true, + "section": "๐Ÿ› ๏ธ Build" + }, + { + "type": "deps", + "section": "๐Ÿ“ฆ Dependencies" + }, + { + "type": "ci", + "hidden": true, + "section": "๐Ÿšฆ CI" + }, + { + "type": "refactor", + "section": "๐Ÿ”„ Refactoring" + }, + { + "type": "revert", + "section": "๐Ÿ”™ Reverts" + }, + { + "type": "style", + "hidden": true, + "section": "๐ŸŽจ Styling" + }, + { + "type": "test", + "hidden": true, + "section": "๐Ÿงช Tests" + } + ], + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file