Make WordPress Core


Ignore:
Timestamp:
12/20/2023 06:44:57 PM (17 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.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/performance.yml

    r57197 r57212  
    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.
     
    7879  # - Print target performance tests results.
    7980  # - Reset to original commit.
     81  # - Switch Node.js versions if necessary.
    8082  # - Install npm dependencies.
    8183  # - Set the environment to the baseline version.
     
    191193          git reset --hard $TARGET_SHA
    192194
     195      - name: Set up Node.js
     196        uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
     197        with:
     198          node-version-file: '.nvmrc'
     199          cache: npm
     200
    193201      - name: Install npm dependencies
    194202        run: npm ci
     
    212220      - name: Reset to original commit
    213221        run: git reset --hard $GITHUB_SHA
     222
     223      - name: Set up Node.js
     224        uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
     225        with:
     226          node-version-file: '.nvmrc'
     227          cache: npm
    214228
    215229      - name: Install npm dependencies
Note: See TracChangeset for help on using the changeset viewer.