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

chore: set up proper publishing pipeline #2266

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Nov 1, 2024

Summary:

Sets up a publishing pipeline with Nx Release

Test Plan:

TBD

@tido64 tido64 requested a review from a team as a code owner November 1, 2024 14:16
@tido64 tido64 marked this pull request as draft November 1, 2024 14:16
@tido64 tido64 force-pushed the tido/fix-publish branch 2 times, most recently from a9fe079 to c730181 Compare November 1, 2024 14:26
package.json Outdated Show resolved Hide resolved
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
Copy link
Collaborator

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?

Copy link
Member Author

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 Show resolved Hide resolved
.ado/scripts/prepublish-check.mjs Outdated Show resolved Hide resolved
Comment on lines 66 to 141
const { defaultBase, release } = loadNxConfig();
if (branch === defaultBase) {
enablePublishing(release, "nightly", "nightly");
} else if (isStableBranch(branch)) {
enablePublishing(release, "v" + branch, releaseCandidate ? "rc" : undefined);
}
}
Copy link
Collaborator

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

Copy link
Member Author

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.

@Saadnajmi Saadnajmi marked this pull request as ready for review November 2, 2024 02:40
@tido64 tido64 marked this pull request as draft November 4, 2024 12:03
@tido64 tido64 force-pushed the tido/fix-publish branch 4 times, most recently from 59a5c9a to a335e87 Compare November 7, 2024 10:04
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.

2 participants