Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): publish only tags that have changed #5421

Merged
merged 2 commits into from Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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