diff --git a/package.json b/package.json index 4104194..f7dfc3a 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,6 @@ { "name": "node-releaser", - "version": { - "options": {}, - "loose": false, - "includePrerelease": false, - "raw": "0.7.5", - "major": 0, - "minor": 7, - "patch": 5, - "prerelease": [], - "build": [], - "version": "0.7.5" - }, + "version": "0.7.6", "description": "Automated versioning and package publishing tool. Supports semver and calver. Extendible with plugins.", "main": "src/index.js", "bin": { diff --git a/src/plugins/npm.js b/src/plugins/npm.js index 7c590e5..dda9778 100644 --- a/src/plugins/npm.js +++ b/src/plugins/npm.js @@ -19,8 +19,8 @@ function npm() { } async function beforePush(nextTag) { - console.log(semver.coerce(nextTag)); - updatePkgJson('version', semver.coerce(nextTag)) + console.log(semver.valid(semver.coerce(nextTag))); + updatePkgJson('version', semver.valid(semver.coerce(nextTag))) } async function afterPush() {