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

fix: publish canary only if lerna detects that packages changed #280

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented Feb 7, 2020

In #276 we forced all packages to be published.

However, when commits do not contain any changes in packages, lerna tries to publish null versions.

image

This seems to be a known issue in lerna (lerna/lerna#1769).

This PR attempts to fix that, by triggering the release only if lerna detects that packages have changed. For that, we can use the lerna changed command.

image

@vercel
Copy link

vercel bot commented Feb 7, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/commercetools/commercetools-docs-kit/2fj7yppvh
✅ Preview: https://commercetools-docs-kit-git-nm-fix-canary-release.commercetools.now.sh

@emmenko emmenko merged commit 8749a66 into master Feb 7, 2020
@emmenko emmenko deleted the nm-fix-canary-release branch February 7, 2020 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant