diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index 7640196db854..58942cb53b5c 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -708,9 +708,9 @@ extends: binlogPath: artifacts/log/Release/Build.binlog presteps: - task: NodeTool@0 - displayName: Install Node 20.x + displayName: Install Node 24.x inputs: - versionSpec: 20.x + versionSpec: 24.14.x pool: name: $(DncEngInternalBuildPool) demands: ImageOverride -equals windows.vs2026preview.scout.amd64 diff --git a/.azure/pipelines/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml index 9655bb75bdf6..7045e5aed5d2 100644 --- a/.azure/pipelines/jobs/default-build.yml +++ b/.azure/pipelines/jobs/default-build.yml @@ -179,9 +179,9 @@ jobs: displayName: Start background dump collection - ${{ if eq(parameters.installNodeJs, 'true') }}: - task: NodeTool@0 - displayName: Install Node 20.x + displayName: Install Node 24.x inputs: - versionSpec: 20.x + versionSpec: 24.14.x - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isAzDOTestingJob, true)) }}: - powershell: | Write-Host "##vso[task.setvariable variable=SeleniumProcessTrackingFolder]$(Build.SourcesDirectory)\artifacts\tmp\selenium\" @@ -413,9 +413,9 @@ jobs: displayName: Start background dump collection - ${{ if eq(parameters.installNodeJs, 'true') }}: - task: NodeTool@0 - displayName: Install Node 20.x + displayName: Install Node 24.x inputs: - versionSpec: 20.x + versionSpec: 24.14.x - ${{ if eq(parameters.agentOs, 'Windows') }}: - powershell: Write-Host "##vso[task.prependpath]$(DOTNET_CLI_HOME)\.dotnet\tools" displayName: Add dotnet tools to path diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index d96b41c05454..73aebebb3109 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -20,7 +20,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: - node-version: 16.x + node-version: 24.14.x - name: Run Markdownlint run: | echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json" diff --git a/.github/workflows/update-jquery-validate.yml b/.github/workflows/update-jquery-validate.yml index fb46d20ae97d..2d4446a61c31 100644 --- a/.github/workflows/update-jquery-validate.yml +++ b/.github/workflows/update-jquery-validate.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: - node-version: '20.x' + node-version: '24.14.x' - name: Set RepoRoot run: echo "RepoRoot=$(pwd)" >> $GITHUB_ENV diff --git a/.github/workflows/validate-npm-package-lock-json.yml b/.github/workflows/validate-npm-package-lock-json.yml index 24bb2fe9d48f..0ea5681e9cf3 100644 --- a/.github/workflows/validate-npm-package-lock-json.yml +++ b/.github/workflows/validate-npm-package-lock-json.yml @@ -1,30 +1,33 @@ -name: Validate package-lock.json against source feeds - -on: - # Manual run - workflow_dispatch: - pull_request: - paths: - - 'package-lock.json' - -jobs: - validate-package-lock-json: - name: 'Validate package-lock.json against source feeds' - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2 - with: - fetch-depth: 0 - submodules: false - - - name: Set up Node.js +name: Validate package-lock.json against source feeds + +permissions: + contents: read + +on: + # Manual run + workflow_dispatch: + pull_request: + paths: + - 'package-lock.json' + +jobs: + validate-package-lock-json: + name: 'Validate package-lock.json against source feeds' + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2 + with: + fetch-depth: 0 + submodules: false + + - name: Set up Node.js uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 - with: - node-version: 20.x - - - name: Run npm ci to validate package-lock.json against the feed - shell: pwsh - id: npm-install-script + with: + node-version: 24.14.x + + - name: Run npm ci to validate package-lock.json against the feed + shell: pwsh + id: npm-install-script run: npm ci --prefer-online --fetch-retries 5 \ No newline at end of file diff --git a/.npmrc b/.npmrc index db9d16ace48f..9470ba58df14 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ always-auth=true +min-release-age=3d diff --git a/package.json b/package.json index 5f877a2f731f..73df82be79bd 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ } }, "engines": { - "node": ">=20.9.0", - "npm": ">=9.3.1" + "node": ">=24.14.1", + "npm": ">=11.11.0" }, "devDependencies": { "karma-sauce-launcher": "^4.3.6",