Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix(ruby): properly support ruby release process (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 29, 2020
1 parent 0a415f5 commit 6c289af
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 40 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -43,6 +43,7 @@ Automate releases with Conventional Commit Messages.
| `path` | create a release from a path other than the repository's root |
| `monorepo-tags` | add prefix to tags and branches, allowing multiple libraries to be released from the same repository. |
| `changelog-types` | A JSON formatted String containing to override the outputted changlog sections |
| `version-file` | provide a path to a version file to increment (used by ruby releaser) |

| output | description |
|:---:|---|
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Expand Up @@ -29,6 +29,9 @@ inputs:
command:
description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)'
require: false
verssion-file:
description: 'provide a path to a version file to increment (used by ruby releaser)'
require: false
runs:
using: 'node12'
main: 'dist/index.js'
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -14,6 +14,7 @@ async function main () {
const fork = core.getInput('fork') ? true : undefined
const changelogTypes = core.getInput('changelog-types')
const command = core.getInput('command') ? core.getInput('command') : undefined
const versionFile = core.getInput('version-file') ? core.getInput('version-file') : undefined

// Parse the changelogTypes if there are any
let changelogSections
Expand Down Expand Up @@ -54,7 +55,8 @@ async function main () {
token: token,
label: RELEASE_LABEL,
bumpMinorPreMajor,
changelogSections
changelogSections,
versionFile
})
await release.run()
}
Expand Down
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
"homepage": "https://github.com/bcoe/release-please-action#readme",
"dependencies": {
"@actions/core": "^1.2.6",
"release-please": "^6.4.2-candidate-2"
"release-please": "^6.6.0"
},
"devDependencies": {
"@zeit/ncc": "^0.22.3",
Expand Down

0 comments on commit 6c289af

Please sign in to comment.