Skip to content

Commit

Permalink
ci(release): publish only tags that have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Jan 9, 2023
1 parent 4c47360 commit d62cbaa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ship.config.js
Original file line number Diff line number Diff line change
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 d62cbaa

Please sign in to comment.