Skip to content

Commit 6c289af

Browse files
author
Benjamin E. Coe
authored
fix(ruby): properly support ruby release process (#92)
1 parent 0a415f5 commit 6c289af

File tree

5 files changed

+46
-40
lines changed

5 files changed

+46
-40
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Automate releases with Conventional Commit Messages.
4343
| `path` | create a release from a path other than the repository's root |
4444
| `monorepo-tags` | add prefix to tags and branches, allowing multiple libraries to be released from the same repository. |
4545
| `changelog-types` | A JSON formatted String containing to override the outputted changlog sections |
46+
| `version-file` | provide a path to a version file to increment (used by ruby releaser) |
4647

4748
| output | description |
4849
|:---:|---|

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ inputs:
2929
command:
3030
description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)'
3131
require: false
32+
verssion-file:
33+
description: 'provide a path to a version file to increment (used by ruby releaser)'
34+
require: false
3235
runs:
3336
using: 'node12'
3437
main: 'dist/index.js'

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ async function main () {
1414
const fork = core.getInput('fork') ? true : undefined
1515
const changelogTypes = core.getInput('changelog-types')
1616
const command = core.getInput('command') ? core.getInput('command') : undefined
17+
const versionFile = core.getInput('version-file') ? core.getInput('version-file') : undefined
1718

1819
// Parse the changelogTypes if there are any
1920
let changelogSections
@@ -54,7 +55,8 @@ async function main () {
5455
token: token,
5556
label: RELEASE_LABEL,
5657
bumpMinorPreMajor,
57-
changelogSections
58+
changelogSections,
59+
versionFile
5860
})
5961
await release.run()
6062
}

package-lock.json

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"homepage": "https://github.com/bcoe/release-please-action#readme",
2626
"dependencies": {
2727
"@actions/core": "^1.2.6",
28-
"release-please": "^6.4.2-candidate-2"
28+
"release-please": "^6.6.0"
2929
},
3030
"devDependencies": {
3131
"@zeit/ncc": "^0.22.3",

0 commit comments

Comments
 (0)