]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
build: publish @pinia/* to latest
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 19 Aug 2021 16:40:14 +0000 (18:40 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 19 Aug 2021 16:40:14 +0000 (18:40 +0200)
scripts/release.mjs

index 1642a3caed0426c0321abbbdf358cf79d0dca598..30f7b880966225a7979df9078ee3b76f1d734ae0 100644 (file)
@@ -16,9 +16,14 @@ const __filename = fileURLToPath(import.meta.url)
 const __dirname = dirname(__filename)
 
 const args = minimist(process.argv.slice(2))
-let { skipBuild, tag, dry: isDryRun, skipCleanCheck: skipCleanGitCheck } = args
+let {
+  skipBuild,
+  tag: optionTag,
+  dry: isDryRun,
+  skipCleanCheck: skipCleanGitCheck,
+} = args
 // TODO: remove on stable
-tag = tag || 'next'
+optionTag = optionTag || 'next'
 
 // const preId =
 //   args.preid ||
@@ -257,6 +262,10 @@ function updateDeps(pkg, depType, updatedPackages) {
 async function publishPackage(pkg) {
   step(`Publishing ${pkg.name}...`)
 
+  // TODO: remove on stable
+  // apply all @pinia/* packages to the latest dist tag on npm
+  const tag = pkg.name !== 'pinia' && optionTag === 'next' ? null : optionTag
+
   try {
     await runIfNotDry(
       'yarn',