mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-23 04:58:56 -05:00
workflow: tag generation for vue-cli-version-marker
This commit is contained in:
@@ -118,7 +118,12 @@ const release = async () => {
|
||||
}, {})
|
||||
fs.writeFileSync(versionMarkerPath, JSON.stringify(versionMarkerPkg, null, 2))
|
||||
|
||||
const tagName = `vue-cli-version-marker@${versionMarkerPkg.version}`
|
||||
await execa('git', ['add', '-A'], { stdio: 'inherit' })
|
||||
await execa('git', ['commit', '-m', `chore: ${tagName}`], { stdio: 'inherit' })
|
||||
await execa('npm', ['publish'], { stdio: 'inherit', cwd: path.dirname(versionMarkerPath) })
|
||||
await execa('git', ['tag', tagName], { stdio: 'inherit' })
|
||||
await execa('git', ['push', '--tags'], { stdio: 'inherit' })
|
||||
}
|
||||
|
||||
release().catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user