diff --git a/build/release-next.js b/build/release-next.js index e34338d755..051e88518d 100644 --- a/build/release-next.js +++ b/build/release-next.js @@ -16,12 +16,12 @@ const originalPackage = readFileSync(packagePath, 'utf-8') const p = JSON.parse(originalPackage) // Change package name -p.name = 'nuxt-next' +// p.name = 'nuxt-next' // Get latest git commit id const gitCommit = String(spawnSync('git', 'rev-parse --short HEAD'.split(' ')).stdout).trim() -// Version with git tag +// Version with latest git commit id p.version = p.version.split('-')[0] + '-gh-' + gitCommit // Write package.json diff --git a/package.json b/package.json index 435475939e..6ce7f64402 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "make-start": "node ./build/start.js", "precommit": "npm run lint", "postinstall": "opencollective postinstall || exit 0", - "release-next": "npm run build && node ./build/release-next && npm publish" + "release-next": "npm run build && node ./build/release-next && npm publish --tag next" }, "engines": { "node": ">=6.11",