Skip to content

Commit

Permalink
feat: update semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Sep 2, 2020
1 parent 389f845 commit 2940b80
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5092,32 +5092,32 @@ async function installer (version) {

async function main () {
try {
const args = ['-vf']
const args = ['--version-file']
if (core.getInput('github-token')) {
args.push('-token')
args.push('--token')
args.push(core.getInput('github-token'))
}
if (core.getInput('prerelease')) {
args.push('-prerelease')
args.push('--prerelease')
}
if (core.getInput('dry')) {
args.push('-dry')
args.push('--dry')
}
if (core.getInput('update-file')) {
args.push('-update')
args.push('--update')
args.push(core.getInput('update-file'))
}
if (core.getInput('changelog-file')) {
args.push('-changelog')
args.push('--changelog')
args.push(core.getInput('changelog-file'))
}
if (core.getInput('ghr')) {
args.push('-ghr')
args.push('--ghr')
}
if (core.getInput('allow-initial-development-versions')) {
args.push('-allow-initial-development-versions')
args.push('--allow-initial-development-versions')
}
const binPath = await installer('^1.22.1')
const binPath = await installer('^2.5.0')
try {
core.info('running semantic-release...')
await exec.exec(binPath, args)
Expand Down
18 changes: 9 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@ async function installer (version) {

async function main () {
try {
const args = ['-vf']
const args = ['--version-file']
if (core.getInput('github-token')) {
args.push('-token')
args.push('--token')
args.push(core.getInput('github-token'))
}
if (core.getInput('prerelease')) {
args.push('-prerelease')
args.push('--prerelease')
}
if (core.getInput('dry')) {
args.push('-dry')
args.push('--dry')
}
if (core.getInput('update-file')) {
args.push('-update')
args.push('--update')
args.push(core.getInput('update-file'))
}
if (core.getInput('changelog-file')) {
args.push('-changelog')
args.push('--changelog')
args.push(core.getInput('changelog-file'))
}
if (core.getInput('ghr')) {
args.push('-ghr')
args.push('--ghr')
}
if (core.getInput('allow-initial-development-versions')) {
args.push('-allow-initial-development-versions')
args.push('--allow-initial-development-versions')
}
const binPath = await installer('^1.22.1')
const binPath = await installer('^2.5.0')
try {
core.info('running semantic-release...')
await exec.exec(binPath, args)
Expand Down

0 comments on commit 2940b80

Please sign in to comment.