-
Notifications
You must be signed in to change notification settings - Fork 136
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: set up proper publishing pipeline #2266
base: main
Are you sure you want to change the base?
Conversation
a9fe079
to
c730181
Compare
@@ -0,0 +1,30 @@ | |||
{ | |||
"$schema": "./node_modules/nx/schemas/nx-schema.json", | |||
"defaultBase": "main", |
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.
Will this need to change per stable branch?
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.
Yes, it does if we want diffing to work correctly. Sorry, I meant to make this a draft. It isn't ready for review yet.
.ado/scripts/prepublish-check.mjs
Outdated
const { defaultBase, release } = loadNxConfig(); | ||
if (branch === defaultBase) { | ||
enablePublishing(release, "nightly", "nightly"); | ||
} else if (isStableBranch(branch)) { | ||
enablePublishing(release, "v" + branch, releaseCandidate ? "rc" : undefined); | ||
} | ||
} |
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 guess we don't have to change the base per stable branch, nice
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.
We still need to, but this script should fail if it's not correctly set.
59a5c9a
to
a335e87
Compare
a335e87
to
e4e70f3
Compare
Summary:
Sets up a publishing pipeline with Nx Release
Test Plan:
TBD