diff --git a/.commitlintrc.json b/.commitlintrc.json new file mode 100644 index 0000000..23e2648 --- /dev/null +++ b/.commitlintrc.json @@ -0,0 +1,6 @@ +{ + "extends": ["@commitlint/config-conventional"], + "rules": { + "body-max-line-length": [0] + } +} diff --git a/.github/workflows/lint-commits.yml b/.github/workflows/lint-commits.yml new file mode 100644 index 0000000..347a84d --- /dev/null +++ b/.github/workflows/lint-commits.yml @@ -0,0 +1,8 @@ +name: Lint Commit Messages + +on: + pull_request: + +jobs: + lint-commits: + uses: appfolio/rubygems-releaser/.github/workflows/lint-commits.yml@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fb1301d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,13 @@ +name: Publish Gem + +on: + release: + types: [published] + +permissions: + contents: write + id-token: write + +jobs: + publish: + uses: appfolio/rubygems-releaser/.github/workflows/publish.yml@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0013597 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: Release Gem + +on: + push: + branches: + - main + - master + +permissions: + contents: write + pull-requests: write + +jobs: + release: + uses: appfolio/rubygems-releaser/.github/workflows/release.yml@v1 diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..a549f59 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "2.4.0" +} diff --git a/Rakefile b/Rakefile index 82c6086..b6ede29 100644 --- a/Rakefile +++ b/Rakefile @@ -10,6 +10,8 @@ rescue Bundler::BundlerError => e exit e.status_code end +require 'bundler/gem_tasks' + require 'rake/testtask' Rake::TestTask.new(:test) do |t| diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..0425208 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,61 @@ +{ + "bootstrap-sha": "9987650fc4b78d13c02fdd779f7339a332dc52b1", + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "version-file": "lib/ae_reverse_proxy/version.rb", + "release-type": "ruby", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "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" + } + ], + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}