Skip to content

Commit 911fddb

Browse files
committed
workflow: publish version marker after all other packages are published [ci skip]
1 parent 4f0cd2d commit 911fddb

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

scripts/markVersions.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ async function markVersions () {
2525
return prev
2626
}, {})
2727
fs.writeFileSync(markerPath, JSON.stringify(marker, null, 2))
28-
29-
// publish separately
30-
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
31-
await execa(
32-
'npm',
33-
['publish', '--registry', 'https://registry.npmjs.org/'],
34-
{ stdio: 'inherit', cwd: path.dirname(markerPath) }
35-
)
3628
}
3729

3830
markVersions().catch(err => {

scripts/release.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ const release = async () => {
112112
}
113113

114114
await execa(require.resolve('lerna/cli'), lernaArgs, { stdio: 'inherit' })
115+
116+
// publish version marker after all other packages are published
117+
await execa(
118+
'npm',
119+
[
120+
'publish',
121+
'--dist-tag',
122+
distTag,
123+
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
124+
'--registry',
125+
'https://registry.npmjs.org/'
126+
],
127+
{
128+
stdio: 'inherit',
129+
cwd: require('path').resolve(
130+
__dirname,
131+
'../packages/vue-cli-version-marker'
132+
)
133+
}
134+
)
115135
}
116136

117137
release().catch(err => {

0 commit comments

Comments
 (0)