-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Automate NPM package releases #1119
Conversation
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: yarn run release |
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 just want to make sure this command will publish the package directly or create a pull request first?
I feel that it's safer to create a pull request first rather than directly publish packages.
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.
It will create a PR first, once that PR is accepted it will publish the packages on NPM. Also if a PR already exists and more code is added to master the release command will update the PR with the new changes.
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.
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 tried that myself on https://GitHub.com/Juice10/rrweb and it didn’t work. Also looking at the changesets documentation and some projects using changesets this seems like the way to go. Looks like a mistake in Matt’s video
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.
Thanks for the explanation!
Changesets will really help us publish packages much faster. Currently, our publishing period is much longer than the average of npm packages. I believe this tool will change the situation. |
I think I've done the TODOs, feel free to ping me on slack or here if there is something missing. |
@@ -36,15 +36,16 @@ export class RRWindow { | |||
|
|||
export class RRDocument | |||
extends BaseRRDocumentImpl(RRNode) | |||
implements IRRDocument { | |||
implements IRRDocument | |||
{ |
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.
These are formatting changes unrelated to changesets?
Use changesets to automate all npm package releases.
Todo before of after merge
NPM_TOKEN
Edit: for more info on how this works see #1119 (comment) or https://github.com/changesets/changesets