1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-14 20:41:37 +02:00

fix(ruby): properly support ruby release process (#92)

This commit is contained in:
Benjamin E. Coe
2020-10-29 15:45:48 -04:00
committed by GitHub
parent 0a415f5e46
commit 6c289af7b6
5 changed files with 46 additions and 40 deletions

View File

@@ -43,6 +43,7 @@ Automate releases with Conventional Commit Messages.
| `path` | create a release from a path other than the repository's root | | `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. | | `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 | | `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 | | output | description |
|:---:|---| |:---:|---|

View File

@@ -29,6 +29,9 @@ inputs:
command: command:
description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)' description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)'
require: false require: false
verssion-file:
description: 'provide a path to a version file to increment (used by ruby releaser)'
require: false
runs: runs:
using: 'node12' using: 'node12'
main: 'dist/index.js' main: 'dist/index.js'

View File

@@ -14,6 +14,7 @@ async function main () {
const fork = core.getInput('fork') ? true : undefined const fork = core.getInput('fork') ? true : undefined
const changelogTypes = core.getInput('changelog-types') const changelogTypes = core.getInput('changelog-types')
const command = core.getInput('command') ? core.getInput('command') : undefined 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 // Parse the changelogTypes if there are any
let changelogSections let changelogSections
@@ -54,7 +55,8 @@ async function main () {
token: token, token: token,
label: RELEASE_LABEL, label: RELEASE_LABEL,
bumpMinorPreMajor, bumpMinorPreMajor,
changelogSections changelogSections,
versionFile
}) })
await release.run() await release.run()
} }

76
package-lock.json generated
View File

@@ -87,9 +87,9 @@
} }
}, },
"@octokit/core": { "@octokit/core": {
"version": "3.1.2", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.1.2.tgz", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.2.0.tgz",
"integrity": "sha512-AInOFULmwOa7+NFi9F8DlDkm5qtZVmDQayi7TUgChE3yeIGPq0Y+6cAEXPexQ3Ea+uZy66hKEazR7DJyU+4wfw==", "integrity": "sha512-42jzu1GWlCr4KUo52X4hD3if2AwjNJLzsS8mqUs9JkJbsM3vzvSx8AqTnVBQjOM0hQMYBqR7/7SAUTfH7IZqIg==",
"requires": { "requires": {
"@octokit/auth-token": "^2.4.0", "@octokit/auth-token": "^2.4.0",
"@octokit/graphql": "^4.3.1", "@octokit/graphql": "^4.3.1",
@@ -128,9 +128,9 @@
} }
}, },
"@octokit/plugin-request-log": { "@octokit/plugin-request-log": {
"version": "1.0.0", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.2.tgz",
"integrity": "sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==" "integrity": "sha512-oTJSNAmBqyDR41uSMunLQKMX0jmEXbwD1fpz8FG27lScV3RhtGfBa1/BBLym+PxcC16IBlF7KH9vP1BUYxA+Eg=="
}, },
"@octokit/plugin-rest-endpoint-methods": { "@octokit/plugin-rest-endpoint-methods": {
"version": "4.2.0", "version": "4.2.0",
@@ -196,9 +196,9 @@
"integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=" "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY="
}, },
"@types/node": { "@types/node": {
"version": "14.11.8", "version": "14.14.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.8.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.6.tgz",
"integrity": "sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxcUzsh2P2Pw==" "integrity": "sha512-6QlRuqsQ/Ox/aJEQWBEJG7A9+u7oSYl3mem/K8IzxXG/kAGbV1YPD9Bg9Zw3vyxC/YP+zONKwy8hGkSt1jxFMw=="
}, },
"@types/normalize-package-data": { "@types/normalize-package-data": {
"version": "2.4.0", "version": "2.4.0",
@@ -206,9 +206,9 @@
"integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==" "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA=="
}, },
"@types/yargs": { "@types/yargs": {
"version": "15.0.8", "version": "15.0.9",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.8.tgz", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.9.tgz",
"integrity": "sha512-b0BYzFUzBpOhPjpl1wtAHU994jBeKF4TKVlT7ssFv44T617XNcPdRoG4AzHLVshLzlrF7i3lTelH7UbuNYV58Q==", "integrity": "sha512-HmU8SeIRhZCWcnRskCs36Q1Q00KBV6Cqh/ora8WN1+22dY07AZdn6Gel8QZ3t26XYPImtcL8WV/eqjhVmMEw4g==",
"requires": { "requires": {
"@types/yargs-parser": "*" "@types/yargs-parser": "*"
} }
@@ -413,9 +413,9 @@
"dev": true "dev": true
}, },
"cliui": { "cliui": {
"version": "7.0.2", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.2.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.3.tgz",
"integrity": "sha512-lhpKkuUj67j5JgZIPZxLe7nSa4MQoojzRVWQyzMqBp2hBg6gwRjUDAwC1YDeBaC3APDBKNnjWbv2mlDF4XgOSA==", "integrity": "sha512-Gj3QHTkVMPKqwP3f7B4KPkBZRMR9r4rfi5bXFpg1a+Svvj8l7q5CnkBkVQzfxT5DFSsGk2+PascOgL0JYkL2kw==",
"requires": { "requires": {
"string-width": "^4.2.0", "string-width": "^4.2.0",
"strip-ansi": "^6.0.0", "strip-ansi": "^6.0.0",
@@ -2316,9 +2316,9 @@
"dev": true "dev": true
}, },
"release-please": { "release-please": {
"version": "6.4.2-candidate-2", "version": "6.6.0",
"resolved": "https://registry.npmjs.org/release-please/-/release-please-6.4.2-candidate-2.tgz", "resolved": "https://registry.npmjs.org/release-please/-/release-please-6.6.0.tgz",
"integrity": "sha512-cDL8C2S0nMp6u7g7yf58jG/Tg2N/+IwkcFLvfKfSh3HwD9X9Ys0CysdZpNLtMSdTwaP7F2+EJ+Ox+qfmChWgfg==", "integrity": "sha512-Ajki4AnAfZBOXA+JKg0jT8kRPSWcHTeYhfEGi6rOdmwyts80pRmLfUFmYkOp1hjFY6zrm/AZzMfi1C83sbw43Q==",
"requires": { "requires": {
"@octokit/graphql": "^4.3.1", "@octokit/graphql": "^4.3.1",
"@octokit/request": "^5.3.4", "@octokit/request": "^5.3.4",
@@ -2333,7 +2333,7 @@
"figures": "^3.0.0", "figures": "^3.0.0",
"parse-github-repo-url": "^1.4.1", "parse-github-repo-url": "^1.4.1",
"semver": "^7.0.0", "semver": "^7.0.0",
"type-fest": "^0.17.0", "type-fest": "^0.18.0",
"yargs": "^16.0.0" "yargs": "^16.0.0"
} }
}, },
@@ -2820,9 +2820,9 @@
} }
}, },
"type-fest": { "type-fest": {
"version": "0.17.0", "version": "0.18.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.17.0.tgz", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.0.tgz",
"integrity": "sha512-EFi9HE4hHj85XnVV80uAUMgICQmhxYgiEvtmfpcD6jqn6zYr36HxAU6k+i/DSY28TK7/lYL0s4v/kWmiKdqaoA==" "integrity": "sha512-fbDukFPnJBdn2eZ3RR+5mK2slHLFd6gYHY7jna1KWWy4Yr4XysHuCdXRzy+RiG/HwG4WJat00vdC2UHky5eKiQ=="
}, },
"typedarray": { "typedarray": {
"version": "0.0.6", "version": "0.0.6",
@@ -2830,9 +2830,9 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
}, },
"uglify-js": { "uglify-js": {
"version": "3.11.2", "version": "3.11.4",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.11.2.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.11.4.tgz",
"integrity": "sha512-G440NU6fewtnQftSgqRV1r2A5ChKbU1gqFCJ7I8S7MPpY/eZZfLGefaY6gUZYiWebMaO+txgiQ1ZyLDuNWJulg==", "integrity": "sha512-FyYnoxVL1D6+jDGQpbK5jW6y/2JlVfRfEeQ67BPCUg5wfCjaKOpr2XeceE4QL+MkhxliLtf5EbrMDZgzpt2CNw==",
"optional": true "optional": true
}, },
"uniq": { "uniq": {
@@ -2925,28 +2925,28 @@
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
}, },
"y18n": { "y18n": {
"version": "5.0.2", "version": "5.0.5",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.2.tgz", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.5.tgz",
"integrity": "sha512-CkwaeZw6dQgqgPGeTWKMXCRmMcBgETFlTml1+ZOO+q7kGst8NREJ+eWwFNPVUQ4QGdAaklbqCZHH6Zuep1RjiA==" "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg=="
}, },
"yargs": { "yargs": {
"version": "16.0.3", "version": "16.1.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.0.3.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.1.0.tgz",
"integrity": "sha512-6+nLw8xa9uK1BOEOykaiYAJVh6/CjxWXK/q9b5FpRgNslt8s22F2xMBqVIKgCRjNgGvGPBy8Vog7WN7yh4amtA==", "integrity": "sha512-upWFJOmDdHN0syLuESuvXDmrRcWd1QafJolHskzaw79uZa7/x53gxQKiR07W59GWY1tFhhU/Th9DrtSfpS782g==",
"requires": { "requires": {
"cliui": "^7.0.0", "cliui": "^7.0.2",
"escalade": "^3.0.2", "escalade": "^3.1.1",
"get-caller-file": "^2.0.5", "get-caller-file": "^2.0.5",
"require-directory": "^2.1.1", "require-directory": "^2.1.1",
"string-width": "^4.2.0", "string-width": "^4.2.0",
"y18n": "^5.0.1", "y18n": "^5.0.2",
"yargs-parser": "^20.0.0" "yargs-parser": "^20.2.2"
} }
}, },
"yargs-parser": { "yargs-parser": {
"version": "20.2.2", "version": "20.2.3",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.2.tgz", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.3.tgz",
"integrity": "sha512-XmrpXaTl6noDsf1dKpBuUNCOHqjs0g3jRMXf/ztRxdOmb+er8kE5z5b55Lz3p5u2T8KJ59ENBnASS8/iapVJ5g==" "integrity": "sha512-emOFRT9WVHw03QSvN5qor9QQT9+sw5vwxfYweivSMHTcAXPefwVae2FjO7JJjj8hCE4CzPOPeFM83VwT29HCww=="
} }
} }
} }

View File

@@ -25,7 +25,7 @@
"homepage": "https://github.com/bcoe/release-please-action#readme", "homepage": "https://github.com/bcoe/release-please-action#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.6", "@actions/core": "^1.2.6",
"release-please": "^6.4.2-candidate-2" "release-please": "^6.6.0"
}, },
"devDependencies": { "devDependencies": {
"@zeit/ncc": "^0.22.3", "@zeit/ncc": "^0.22.3",