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

chore: check npm authentication on prerelease #1219

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

jonnybel
Copy link
Contributor

Summary

When doing a yarn release, if you forgot to log in to the npm CLI, lerna will still perform some of the steps but then fail on the npm publish process, resulting in dirty state (see lerna/lerna#455).

This PR prevents this problem by checking if the user is logged in to npm on the prerelease step.

@jonnybel jonnybel self-assigned this Dec 13, 2019
@vercel
Copy link

vercel bot commented Dec 13, 2019

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/ui-kit/4c269svo9
🌍 Preview: https://ui-kit-git-ja-chore-check-npm-login-on-prerelease.commercetools.now.sh

Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jonnybel jonnybel merged commit 5c421aa into master Dec 13, 2019
@jonnybel jonnybel deleted the ja-chore-check-npm-login-on-prerelease branch December 13, 2019 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants