Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
chore: release next create-father version to latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Jul 20, 2022
1 parent eb9bb53 commit 7e37e18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import rimraf from 'rimraf';
import 'zx/globals';

const pkgs = ['.', 'boilerplate'];
const noNextTagPkgs = ['create-father'];

(async () => {
const { branch } = getGitRepoInfo();
Expand Down Expand Up @@ -116,7 +117,9 @@ const pkgs = ['.', 'boilerplate'];

await Promise.all(
pkgs.map(async (pkg) => {
await $`cd ${pkg} && npm publish --tag ${tag} ${otpArg}`;
await $`cd ${pkg} && npm publish --tag ${
tag === 'next' && noNextTagPkgs.includes(pkg) ? 'latest' : tag
} ${otpArg}`;
logger.info(`+ ${pkg}`);
}),
);
Expand Down

0 comments on commit 7e37e18

Please sign in to comment.