mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
chore(ci): publish nuxt@next
This commit is contained in:
parent
449c99f6d7
commit
a29eb99d49
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user