chore(ci): publish nuxt@next

This commit is contained in:
Pooya Parsa 2017-11-24 22:53:36 +03:30
parent 449c99f6d7
commit a29eb99d49
No known key found for this signature in database
GPG Key ID: C3C77C557D8883CD
2 changed files with 3 additions and 3 deletions

View File

@ -16,12 +16,12 @@ const originalPackage = readFileSync(packagePath, 'utf-8')
const p = JSON.parse(originalPackage) const p = JSON.parse(originalPackage)
// Change package name // Change package name
p.name = 'nuxt-next' // p.name = 'nuxt-next'
// Get latest git commit id // Get latest git commit id
const gitCommit = String(spawnSync('git', 'rev-parse --short HEAD'.split(' ')).stdout).trim() 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 p.version = p.version.split('-')[0] + '-gh-' + gitCommit
// Write package.json // Write package.json

View File

@ -57,7 +57,7 @@
"make-start": "node ./build/start.js", "make-start": "node ./build/start.js",
"precommit": "npm run lint", "precommit": "npm run lint",
"postinstall": "opencollective postinstall || exit 0", "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": { "engines": {
"node": ">=6.11", "node": ">=6.11",