Skip to content

Commit

Permalink
build: minor release script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 11, 2024
1 parent 41eecd3 commit a665270
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,13 @@ 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}`])
}

if (!noPublish) {
Expand Down Expand Up @@ -332,7 +337,7 @@ async function publishPackage(pkg) {
'public',
// specific to pinia
'--publish-branch',
'v2',
EXPECTED_BRANCH,
],
{
cwd: pkg.path,
Expand Down

0 comments on commit a665270

Please sign in to comment.