Make WordPress Core


Ignore:
Timestamp:
12/20/2023 06:59:17 PM (12 months ago)
Author:
desrosj
Message:

Build/Test Tools: Raise minimum required version of Node.js/npm.

This bumps the minimum required version of Node.js/npm from 16.19.1 and 8.19.3 to 20.10.0 and 10.2.3.

Since 20.10.0 is the latest 20.x version of Node.js, the check-latest option has been enabled for actions/setup-node in GitHub Actions workflows. This performs an additional external call to the Node.js API confirming the latest version is installed on the runner for use. In testing, it seems that 20.10.0 was not consistently deployed to all runner machines in use. This should be removed in the near future when the version of Node.js is reliably above the new minimum requirement.

The Gutenberg repository has also been updated to use the same values for engines.

Merges [57212] to the 6.4 branch.

Props jorbin, joemcgill, swissspidy, benharri, dhrupo, flootr, gziolo, noahtallen.
See #59663.

Location:
branches/6.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/.github/workflows/performance.yml

    r57002 r57214  
    7272  # - Print performance tests results.
    7373  # - Check out target commit (target branch or previous commit).
     74  # - Switch Node.js versions if necessary.
    7475  # - Install npm dependencies.
    7576  # - Build WordPress.
     
    7778  # - Print target performance tests results.
    7879  # - Reset to original commit.
     80  # - Switch Node.js versions if necessary.
    7981  # - Install npm dependencies.
    8082  # - Set the environment to the baseline version.
     
    183185          git reset --hard $TARGET_SHA
    184186
     187      - name: Set up Node.js
     188        uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
     189        with:
     190          node-version-file: '.nvmrc'
     191          cache: npm
     192
    185193      - name: Install npm dependencies
    186194        run: npm ci
     
    201209      - name: Reset to original commit
    202210        run: git reset --hard $GITHUB_SHA
     211
     212      - name: Set up Node.js
     213        uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
     214        with:
     215          node-version-file: '.nvmrc'
     216          cache: npm
    203217
    204218      - name: Install npm dependencies
Note: See TracChangeset for help on using the changeset viewer.