Skip to content

Commit

Permalink
ci(release): publish only tags that have changed (#5421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Jan 10, 2023
1 parent e5b4fa6 commit fc7f3a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ship.config.js
Expand Up @@ -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(
Expand Down

0 comments on commit fc7f3a0

Please sign in to comment.