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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(release): run npm publish directly #424
Conversation
package.json
Outdated
@@ -22,7 +22,7 @@ | |||
"prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx,md,mdx}'", | |||
"prebuild": "lerna run prebuild", | |||
"lerna:version": "lerna version --no-private --conventional-commits --create-release github --yes", | |||
"lerna:publish": "lerna publish from-git --yes", | |||
"lerna:publish": "npx lerna exec -- npm publish", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using npx
instead of yarn for this step as yarn seems to not respect .npmrc
for some reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool literally commented on this the same time you did haha #424 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Umm... thinking about it again, I think this may fail in CI because we run yarn lerna:publish
馃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna add this command in the config.yaml directly. At least there I can add a comment explaining why
Size Change: 0 B Total Size: 237 kB 鈩癸笍 View Unchanged
|
lerna publish --from-git
fails with 404 error. This doesn't happen locally so it's hard to debug. While searching I noticed that we don't need lerna to publish since all the version bumping + changelog + GH release happens in thelerna version
step.So for our use case,
lerna publish
should be the same as runningnpm publish
in all packages and that's what this PR is about to unblock publishing.Additionally I updated some READMEs to mention
yarn
instead ofnpm run
.This works locally but will have to wait for the CI 馃馃徎