Skip to content

Commit 51d54db

Browse files
committed
workflow: tag generation for vue-cli-version-marker
1 parent 3d186d1 commit 51d54db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ const release = async () => {
118118
}, {})
119119
fs.writeFileSync(versionMarkerPath, JSON.stringify(versionMarkerPkg, null, 2))
120120

121+
const tagName = `vue-cli-version-marker@${versionMarkerPkg.version}`
122+
await execa('git', ['add', '-A'], { stdio: 'inherit' })
123+
await execa('git', ['commit', '-m', `chore: ${tagName}`], { stdio: 'inherit' })
121124
await execa('npm', ['publish'], { stdio: 'inherit', cwd: path.dirname(versionMarkerPath) })
125+
await execa('git', ['tag', tagName], { stdio: 'inherit' })
126+
await execa('git', ['push', '--tags'], { stdio: 'inherit' })
122127
}
123128

124129
release().catch(err => {

0 commit comments

Comments
 (0)