mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-12 14:58:26 -05:00
workflow: publish version marker after all other packages are published [ci skip]
This commit is contained in:
@@ -25,14 +25,6 @@ async function markVersions () {
|
||||
return prev
|
||||
}, {})
|
||||
fs.writeFileSync(markerPath, JSON.stringify(marker, null, 2))
|
||||
|
||||
// publish separately
|
||||
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
|
||||
await execa(
|
||||
'npm',
|
||||
['publish', '--registry', 'https://registry.npmjs.org/'],
|
||||
{ stdio: 'inherit', cwd: path.dirname(markerPath) }
|
||||
)
|
||||
}
|
||||
|
||||
markVersions().catch(err => {
|
||||
|
||||
@@ -112,6 +112,26 @@ const release = async () => {
|
||||
}
|
||||
|
||||
await execa(require.resolve('lerna/cli'), lernaArgs, { stdio: 'inherit' })
|
||||
|
||||
// publish version marker after all other packages are published
|
||||
await execa(
|
||||
'npm',
|
||||
[
|
||||
'publish',
|
||||
'--dist-tag',
|
||||
distTag,
|
||||
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
|
||||
'--registry',
|
||||
'https://registry.npmjs.org/'
|
||||
],
|
||||
{
|
||||
stdio: 'inherit',
|
||||
cwd: require('path').resolve(
|
||||
__dirname,
|
||||
'../packages/vue-cli-version-marker'
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
release().catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user