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:next #10177

Merged
merged 1 commit into from
Sep 28, 2021
Merged

fix publish:next #10177

merged 1 commit into from
Sep 28, 2021

Conversation

paul-marechal
Copy link
Member

lerna@4 follows lifecycle scripts when running publish:
https://github.com/lerna/lerna/tree/main/commands/publish#lifecycle-scripts

We never relied on those, and it also causes issues with our setup.

Add --ignore-scripts to prevent script recursion.

`lerna@4` follows lifecycle scripts when running publish:
https://github.com/lerna/lerna/tree/main/commands/publish#lifecycle-scripts

We never relied on those, and it also causes issues with our setup.

Add `--ignore-scripts` to prevent script recursion.
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

👍

@marcdumais-work
Copy link
Contributor

We might also need to add an option for lerna to go ahead and publish despite the uncommitted change to the various package.json files: #10175 (comment)

@marcdumais-work
Copy link
Contributor

Maybe this: lerna/lerna#1700 (comment)

Copy link
Contributor

@marcdumais-work marcdumais-work left a comment

Choose a reason for hiding this comment

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

Not sure it will fix all our issues, but I noticed the extra scripts being called and it's a good step forward to get rid of them.

@marcdumais-work
Copy link
Contributor

I used this PR in a local registry (verdaccio) and was able to successfully publish. Let's merge and see if it also works in CI!

@marcdumais-work marcdumais-work merged commit 6a1b815 into master Sep 28, 2021
@marcdumais-work marcdumais-work deleted the mp/next-fix-fix branch September 28, 2021 13:51
@github-actions github-actions bot added this to the 1.18.0 milestone Sep 28, 2021
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.

3 participants