Skip to content

Commit a1f958a

Browse files
committed
build: correct tag name
1 parent edf7d93 commit a1f958a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"release": "node scripts/release.mjs",
1313
"size": "pnpm run -r size",
1414
"build": "pnpm run -r build",
15+
"build:dts": "pnpm run -r build:dts",
1516
"docs:build": "pnpm run -r docs:build --filter ./packages/docs",
1617
"play": "pnpm run -r play",
1718
"build:size": "pnpm run -r build:size",

scripts/release.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,12 @@ async function main() {
232232
step('\nCreating tags...')
233233
let versionsToPush = []
234234
for (const pkg of pkgWithVersions) {
235-
versionsToPush.push(`refs/tags/${pkg.name}@${pkg.version}`)
236-
await runIfNotDry('git', ['tag', `${pkg.name}@${pkg.version}`])
235+
const tagName =
236+
pkg.name === 'vue-router'
237+
? `v${pkg.version}`
238+
: `${pkg.name}@${pkg.version}`
239+
versionsToPush.push(`refs/tags/${tagName}`)
240+
await runIfNotDry('git', ['tag', `${tagName}`])
237241
}
238242

239243
step('\nPublishing packages...')

0 commit comments

Comments
 (0)