mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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)
|
||||
|
||||
// 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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user