Skip to content

Commit

Permalink
build: correct tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 4, 2022
1 parent edf7d93 commit a1f958a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"release": "node scripts/release.mjs",
"size": "pnpm run -r size",
"build": "pnpm run -r build",
"build:dts": "pnpm run -r build:dts",
"docs:build": "pnpm run -r docs:build --filter ./packages/docs",
"play": "pnpm run -r play",
"build:size": "pnpm run -r build:size",
Expand Down
8 changes: 6 additions & 2 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@ async function main() {
step('\nCreating tags...')
let versionsToPush = []
for (const pkg of pkgWithVersions) {
versionsToPush.push(`refs/tags/${pkg.name}@${pkg.version}`)
await runIfNotDry('git', ['tag', `${pkg.name}@${pkg.version}`])
const tagName =
pkg.name === 'vue-router'
? `v${pkg.version}`
: `${pkg.name}@${pkg.version}`
versionsToPush.push(`refs/tags/${tagName}`)
await runIfNotDry('git', ['tag', `${tagName}`])
}

step('\nPublishing packages...')
Expand Down

0 comments on commit a1f958a

Please sign in to comment.