fix: allow same version on setup
This commit is contained in:
parent
38cb8cc558
commit
69a1c05bdb
2
cli.js
2
cli.js
|
@ -17,7 +17,7 @@ let version = 'patch'
|
||||||
|
|
||||||
let pkg = require('./package.json')
|
let pkg = require('./package.json')
|
||||||
let current = execSync(`npm view ${pkg.name} version`).toString()
|
let current = execSync(`npm view ${pkg.name} version`).toString()
|
||||||
process.stdout.write(execSync(`npm version ${current}`))
|
process.stdout.write(execSync(`npm version ${current} --allow-same-version`))
|
||||||
process.stdout.write(execSync(`npm version ${version}`))
|
process.stdout.write(execSync(`npm version ${version}`))
|
||||||
process.stdout.write(execSync(`npm publish --access=public`))
|
process.stdout.write(execSync(`npm publish --access=public`))
|
||||||
process.stdout.write(execSync(`git push --tags`))
|
process.stdout.write(execSync(`git push --tags`))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "merge-release",
|
"name": "merge-release",
|
||||||
"version": "1.9.2",
|
"version": "0.0.0-dev",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|
Loading…
Reference in New Issue