Skip to content

Commit b8a691c

Browse files
authored
Merge pull request #17 from appfolio/pim_add_release_please
ci: add Release Please and gem-releaser workflows for automated releases
2 parents 636a6da + 57c3fb5 commit b8a691c

7 files changed

Lines changed: 108 additions & 0 deletions

File tree

.commitlintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"body-max-line-length": [0]
5+
}
6+
}

.github/workflows/lint-commits.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Lint Commit Messages
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint-commits:
8+
uses: appfolio/rubygems-releaser/.github/workflows/lint-commits.yml@v1

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish Gem
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: write
9+
id-token: write
10+
11+
jobs:
12+
publish:
13+
uses: appfolio/rubygems-releaser/.github/workflows/publish.yml@v1

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Gem
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
uses: appfolio/rubygems-releaser/.github/workflows/release.yml@v1

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.5.0"
3+
}

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ rescue Bundler::BundlerError => e
1010
exit e.status_code
1111
end
1212

13+
require 'bundler/gem_tasks'
14+
1315
require 'rspec/core/rake_task'
1416
require 'rake/extensiontask'
1517

release-please-config.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"bootstrap-sha": "3be104a0fb8fea3bf17b272a6b5930dd19afdf2e",
3+
"packages": {
4+
".": {
5+
"changelog-path": "CHANGELOG.md",
6+
"version-file": "lib/ae_fast_decimal_formatter/version.rb",
7+
"release-type": "ruby",
8+
"bump-minor-pre-major": false,
9+
"bump-patch-for-minor-pre-major": false,
10+
"draft": false,
11+
"prerelease": false
12+
}
13+
},
14+
"changelog-sections": [
15+
{
16+
"type": "feat",
17+
"section": "Features"
18+
},
19+
{
20+
"type": "fix",
21+
"section": "Bug Fixes"
22+
},
23+
{
24+
"type": "perf",
25+
"section": "Performance Improvements"
26+
},
27+
{
28+
"type": "revert",
29+
"section": "Reverts"
30+
},
31+
{
32+
"type": "docs",
33+
"section": "Documentation"
34+
},
35+
{
36+
"type": "style",
37+
"section": "Styles"
38+
},
39+
{
40+
"type": "chore",
41+
"section": "Miscellaneous Chores"
42+
},
43+
{
44+
"type": "refactor",
45+
"section": "Code Refactoring"
46+
},
47+
{
48+
"type": "test",
49+
"section": "Tests"
50+
},
51+
{
52+
"type": "build",
53+
"section": "Build System"
54+
},
55+
{
56+
"type": "ci",
57+
"section": "Continuous Integration"
58+
}
59+
],
60+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
61+
}

0 commit comments

Comments
 (0)