diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 00000000..6ab2b513 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,35 @@ +name: Lint PR title + +on: + pull_request: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix + feat + refactor + style + test + perf + docs + deps + build + ci + chore + internal + revert diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..c37877d1 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,24 @@ +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + # token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} + # this is a built-in strategy in release-please, see "Action Inputs" + # for more options + release-type: simple diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..7d9b009d --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.10.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..34b7b7e7 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,29 @@ +{ + "bootstrap-sha": "640550975a412d71fc35875103e1c833237b168d", + "packages": { + ".": { + "releaseType": "node", + "bump-minor-pre-major": true, + "include-component-in-tag": false, + "include-v-in-tag": true, + "changelog-sections": [ + { "type": "feat", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "revert", "section": "Reverts" }, + { "type": "internal", "section": "Internal Changes" }, + { "type": "deps", "section": "Dependency Updates" }, + { "type": "docs", "section": "Documentation" }, + { "type": "style", "section": "Styles" }, + { "type": "chore", "section": "Miscellaneous Chores" }, + { "type": "refactor", "section": "Code Refactoring" }, + { "type": "test", "section": "Tests" }, + { "type": "build", "section": "Build System" }, + { "type": "ci", "section": "Continuous Integration" } + ] + } + }, + "draft": true, + "draft-pull-request": true, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}