-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Replace nightly with canary releases #9559
Conversation
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.
Amazing work 🚀
I'm happy but let's make sure @devongovett is aware before merging. Not sure if he has any external reliance on nightly.
Would it be possible to also tag each canary release as a nightly? So |
@marcins I can have a look, is that just to make this less of a breaking change? |
so it's essentially the same just more often? I agree about adding a dist-tag for nightly as well for people currently using that. |
Yeah, it's so the .. or I guess another option is to just keep Running another lerna publish to nightly will take a bit longer as you need to run the command again with a different dist-tag - I'm not sure how much of the work Lerna can re-use, but looks like that part currently takes ~4 min - I guess you could always do it in parallel? From the npm point of view, I don't think there's any issues with doing this. |
@devongovett Yeah, it's the same but more frequent @marcins It can be aliased, but it's a bit tedious to do. I've written a custom script that does this in the latest commit. |
6d0c1ce
to
289dcc7
Compare
async function main(tag) { | ||
let publishSummary = JSON.parse( | ||
await readFile( | ||
new URL('../lerna-publish-summary.json', import.meta.url).pathname, |
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.
I haven't seen this kind of pattern of using an URL in a readFile
, what does it do over a readFile(path.resolve(__dirname, "../lerna-publish-summary.json"))
?
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.
Neither, only just used it for the first time. It's the equivalent to your example in esm land, and will be an absolute path due to accessing pathname
Example: /parcel/lerna-publish-summary.json
↪️ Pull Request
Replaces the nightly release with a canary release, which will trigger on every push to v2 instead of running every night. Other notable changes include:
^3.22.1
to^6.6.2
to utilise the--summary-file
option.Regarding lerna, there are no notable breaking changes between versions:
@npmcli/run-script
overnpm-lifecycle
💻 Examples
This change helps us move to trunk based development with a feature flag system as described in #9539
A working dev release enables installation of
parcel@dev-test
which points to the latestparcel@dev
version🚨 Test instructions
Change the target push branch to the current branch