Skip to content

[Infrastructure] Add a script to update NPM dependencies and create PRs #54701

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 2 commits into from
Mar 22, 2024

Conversation

javiercn
Copy link
Member

@javiercn javiercn commented Mar 22, 2024

  • Adds a script that can be run locally to:
    • Update all our NPM dependencies
    • Populate the local NPM cache we use
    • Add additional optional packages to the cache that we need but that don't get installed via install
    • Create a commit with the changes on the submodule, push a branch and create a PR for it in the submodule repo
    • Create a commit on the main repo push a branch and create a PR for it.

The script requires the GH CLI to be installed and for the user to be appropriately logged in.

Requirements:

  • Node.js 20.x (winget install OpenJS.NodeJS.LTS)
  • GH CLI (winget install GitHub.cli)
  • vsts-npm-auth (npm install -g vsts-npm-auth)
  • vsts-npm-auth.cmd -F -C ..npmrc (Run this command in the repository root to authenticate with Azure DevOps)

Sample run result

@javiercn javiercn requested review from wtgodbe and a team as code owners March 22, 2024 16:34
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 22, 2024
@javiercn javiercn merged commit 7b946b4 into main Mar 22, 2024
@javiercn javiercn deleted the javiercn/add-npm-dependencies-update-script branch March 22, 2024 21:32
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview4 milestone Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants