Create authenticated npmrc in another job#2911
Open
chidozieononiwu wants to merge 4 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the VSIX release pipeline to install @vscode/vsce using an authenticated .npmrc produced in a separate job, so the production deployment jobs don’t need direct feed/service-connection access.
Changes:
- Added an
AuthenticateNpmrcjob to create an authenticated.npmrcand publish it as a pipeline artifact. - Updated VSIX deployment jobs to depend on
AuthenticateNpmrcand download the published npmrc artifact. - Updated the deployment script step to install
@vscode/vsceusingnpm --userconfigpointing at the downloaded.npmrc.
Invoking Livetests
Copilot submitted PRs are not trustworthy by default. Users with write access to the repo need to validate the contents of this PR before leaving a comment with the text /azp run mcp - pullrequest - live. This will trigger the necessary livetest workflows to complete required validation.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the VSIX release pipeline to improve how the
@vscode/vscetool is installed during deployment. The main change is the introduction of a new job that creates and publishes an authenticated.npmrcfile, allowing deployment jobs to install@vscode/vscefrom an internal feed without needing direct service connection access. This enhances security and simplifies the deployment process.Pipeline authentication and artifact handling:
AuthenticateNpmrc, to create an authenticated.npmrcfile and publish it as a pipeline artifact for use by deployment jobs.AuthenticateNpmrcjob and to download thevsix_npmrcartifact for authenticated npm installs. [1] [2]VSCE installation update:
@vscode/vsceusing the authenticated.npmrc, ensuring installation from the internal feed.mcp - Template.Mcp.Server