Skip to content

Commit

Permalink
chore(Root): fix tag sent to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Aug 22, 2024
1 parent cfa13b5 commit 3258ec8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/publish-tagged-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ async function publishPackages() {
packagesToPublish.forEach(async packageName => {
const packageConfig = getConfig(packageName)
const {name} = packageConfig
const version = await getPackageVersion({name, tag: tag.startsWith(DEPENDABOT_TAG) ? DEPENDABOT_TAG : tag})
const packageTag = tag.startsWith(DEPENDABOT_TAG) ? DEPENDABOT_TAG : tag
const version = await getPackageVersion({name, tag: packageTag})

// Set the new tagged version.
packageConfig.version = version
Expand All @@ -100,7 +101,7 @@ async function publishPackages() {

fs.writeFileSync(packageJsonPath, packageJson)

await $$`npm publish --tag ${tag}`
await $$`npm publish --tag ${packageTag}`
})
}

Expand Down

0 comments on commit 3258ec8

Please sign in to comment.