diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..f0d9444 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: Release Please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + with: + token: ${{ secrets.RELEASEPLEASE_TOKEN }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..af522f0 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.0.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..3e5b830 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,30 @@ +{ + "release-type": "node", + + "draft-pull-request": true, + "pull-request-title-pattern": "chore: release ${version}", + "pull-request-header": "๐Ÿ“ฆ Release PR", + "pull-request-footer": "๐Ÿค– This pull request was automatically generated. To publish the version, please merge the pull request.", + + "include-component-in-tag": false, + + "changelog-sections": [ + { "type": "feat", "section": "๐Ÿ“• Features" }, + { "type": "change", "section": "๐Ÿ”„ Changes" }, + { "type": "fix", "section": "๐Ÿชฒ Bug Fixes" }, + { "type": "docs", "section": "๐Ÿ“ Documentation" }, + { "type": "style", "section": "๐ŸŽจ Style Changes" }, + { "type": "refactor", "section": "๐Ÿ”ง Code Refactoring" }, + { "type": "deps", "section": "โš™๏ธ Dependencies" }, + { "type": "content", "section": "๐Ÿ“– Content Changes" }, + { "type": "chore", "section": "๐Ÿ”ง Other Changes" }, + { "type": "test", "section": "๐Ÿงช Testing Changes" }, + { "type": "ci", "section": "๐Ÿš€ CI/CD Changes" } + ], + + "packages": { + ".": {} + }, + + "$schema": "https://github.com/googleapis/release-please/raw/main/schemas/config.json" +}