Skip to content

ci: move "NPM Publish (Dry Run)" to Github Actions #2532

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

Merged
merged 3 commits into from
Jul 7, 2025

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Jul 1, 2025

Summary:

Our NX release dry run job depends on a read-only GitHub token (I'm pretty sure...) which is hard to get with Azure Pipelines. Let's move the job to Github Actions. In the process, I also updated both the dry run and the Azure Pipelines publish job to read our publish tag directly from nx.json instead of having it set in YAML. Not sure why we didn't do that earlier.. I'll have to go check those PRs to see if we had a strong reason.

Test Plan:

CI should pass

if (adoSourceBranchName) {
return adoSourceBranchName.replace(/^refs\/heads\//, "");
// Azure DevOps Pipelines
if (process.env["TF_BUILD"] === "True") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to check this..

Saadnajmi added a commit that referenced this pull request Jul 7, 2025
- Backport of #2532
- Backport of #2436 (the former change depends on it) 
- Adds a version plan to publish a new release

---------

Co-authored-by: Tommy Nguyen <[email protected]>
Saadnajmi added a commit that referenced this pull request Jul 7, 2025
- Backport of #2532
- Backport of #2436 (the former change depends on it) 
- Adds a version plan to publish a new release

---------

Co-authored-by: Tommy Nguyen <[email protected]>
Saadnajmi added a commit that referenced this pull request Jul 7, 2025
- Backport of #2532
- Backport of #2436 (the former change depends on it) 
- Adds a version plan to publish a new release

---------

Co-authored-by: Tommy Nguyen <[email protected]>
@Saadnajmi Saadnajmi merged commit 0d7b006 into microsoft:main Jul 7, 2025
20 checks passed
@Saadnajmi Saadnajmi deleted the gha-dry-run branch July 7, 2025 19:05
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