From fc7f3a0d2bddb61506aa1d5781a7902ba287d879 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 10 Jan 2023 10:25:35 +0100 Subject: [PATCH] ci(release): publish only tags that have changed (#5421) --- ship.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ship.config.js b/ship.config.js index fddc7dcca8..848f85d6a2 100644 --- a/ship.config.js +++ b/ship.config.js @@ -5,13 +5,18 @@ const packages = JSON.parse( silent: true, }) ); +const changedPackages = JSON.parse( + shell.exec('yarn run --silent lerna list --toposort --json', { + silent: true, + }) +); module.exports = { shouldPrepare: () => { return true; }, getTagName: () => - packages.map((package) => `${package.name}@${package.version}`), + changedPackages.map((package) => `${package.name}@${package.version}`), getStagingBranchName: () => `chore/release-${Date.now()}`, version({ exec }) { exec(