From: Eduardo San Martin Morote Date: Thu, 19 Aug 2021 16:40:14 +0000 (+0200) Subject: build: publish @pinia/* to latest X-Git-Tag: @pinia/testing@0.0.2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27cc1b9103e1b88f38c32598609de596e1cd0ff4;p=thirdparty%2Fvuejs%2Fpinia.git build: publish @pinia/* to latest --- diff --git a/scripts/release.mjs b/scripts/release.mjs index 1642a3ca..30f7b880 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -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',