diff --git a/.github/workflows/build-plugin-zip.yml b/.github/workflows/build-plugin-zip.yml index 68b9ca7a9e247..dd434703d3049 100644 --- a/.github/workflows/build-plugin-zip.yml +++ b/.github/workflows/build-plugin-zip.yml @@ -169,9 +169,9 @@ jobs: ref: ${{ needs.bump-version.outputs.release_branch || github.ref }} - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Build Gutenberg plugin ZIP file @@ -326,9 +326,9 @@ jobs: git config user.email gutenberg@wordpress.org - name: Setup Node - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - name: Publish packages to npm ("latest" dist-tag) diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 507bec367f621..d2b1298e484bb 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -35,9 +35,6 @@ jobs: build: name: Check runs-on: ubuntu-latest - strategy: - matrix: - node: ['14'] steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 @@ -45,9 +42,9 @@ jobs: fetch-depth: 1 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - uses: preactjs/compressed-size-action@df6e03e187079aef959a2878311639c77b95ee2e # v2.2.0 diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index 0dbff63401f49..012ada8d05f14 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: node-version: ${{ matrix.node }} cache: npm diff --git a/.github/workflows/end2end-test-playwright.yml b/.github/workflows/end2end-test-playwright.yml index 317eb61329a59..8ab3b9a22966f 100644 --- a/.github/workflows/end2end-test-playwright.yml +++ b/.github/workflows/end2end-test-playwright.yml @@ -22,16 +22,14 @@ jobs: if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: fail-fast: false - matrix: - node: ['14'] steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - name: Npm install and build diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index a6e06ee05429c..e8e140bcd0e77 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -24,15 +24,14 @@ jobs: fail-fast: false matrix: part: [1, 2, 3, 4] - node: ['14'] steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - name: Npm install and build diff --git a/.github/workflows/flaky-tests.yml b/.github/workflows/flaky-tests.yml index 9d195ba7657de..1efe37a3d72ae 100644 --- a/.github/workflows/flaky-tests.yml +++ b/.github/workflows/flaky-tests.yml @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Npm install diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 99a8aea9b7979..2efa28a0fb736 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -24,9 +24,9 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Npm install diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index 064a4380707db..5337acc848134 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -20,7 +20,7 @@ jobs: ref: trunk - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: node-version: ${{ matrix.node }} diff --git a/.github/workflows/rnmobile-android-runner.yml b/.github/workflows/rnmobile-android-runner.yml index e990398098764..4de748dfa42a1 100644 --- a/.github/workflows/rnmobile-android-runner.yml +++ b/.github/workflows/rnmobile-android-runner.yml @@ -19,7 +19,6 @@ jobs: strategy: matrix: native-test-name: [gutenberg-editor-initial-html] - node: ['14'] steps: - name: checkout @@ -33,9 +32,9 @@ jobs: cache: 'gradle' - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - run: npm ci diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index 1c520f3e36912..09f623766fb29 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -21,15 +21,14 @@ jobs: xcode: ['13.0'] device: ['iPhone 11'] native-test-name: [gutenberg-editor-initial-html] - node: ['14'] steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - run: npm ci diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index f5987cf25d0d4..e6aaaeaa06bfa 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -25,9 +25,9 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Npm install diff --git a/.github/workflows/storybook-pages.yml b/.github/workflows/storybook-pages.yml index f0f27589660a0..6efe56a8891f6 100644 --- a/.github/workflows/storybook-pages.yml +++ b/.github/workflows/storybook-pages.yml @@ -9,9 +9,6 @@ jobs: deploy: runs-on: ubuntu-latest if: ${{ github.repository == 'WordPress/gutenberg' }} - strategy: - matrix: - node: ['14'] steps: - name: Checkout @@ -20,9 +17,9 @@ jobs: ref: trunk - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: ${{ matrix.node }} + node-version-file: '.nvmrc' cache: npm - name: Install Dependencies diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 5371889620f36..786272b4e29e4 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: node-version: ${{ matrix.node }} cache: npm @@ -60,9 +60,9 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Npm install and build @@ -94,9 +94,9 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - name: Use desired version of NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 with: - node-version: 14 + node-version-file: '.nvmrc' cache: npm - name: Npm install and build