diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml index 538946a..dbfcc2e 100644 --- a/.github/workflows/node-build.yml +++ b/.github/workflows/node-build.yml @@ -37,6 +37,12 @@ jobs: - name: Checkout code uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - name: Set up Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '22' + cache: 'npm' + - name: Install dependencies shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/node-lint.yml b/.github/workflows/node-lint.yml index 75b65d2..d112a0e 100644 --- a/.github/workflows/node-lint.yml +++ b/.github/workflows/node-lint.yml @@ -47,6 +47,12 @@ jobs: - name: Checkout code uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - name: Set up Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '22' + cache: 'npm' + - name: Install dependencies shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index 0774ab3..9da8aed 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -72,6 +72,12 @@ jobs: - name: Checkout code uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - name: Set up Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '22' + cache: 'npm' + - name: Install dependencies shell: bash working-directory: ${{ inputs.working-directory }} @@ -90,6 +96,12 @@ jobs: - name: Checkout code uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - name: Set up Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '22' + cache: 'npm' + - name: Install dependencies shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/node-update-visual-snapshots.yml b/.github/workflows/node-update-visual-snapshots.yml index 9ba739f..01bc676 100644 --- a/.github/workflows/node-update-visual-snapshots.yml +++ b/.github/workflows/node-update-visual-snapshots.yml @@ -52,7 +52,7 @@ on: node-version: description: "Node.js version to use" required: false - default: "20" + default: "22" type: string working-directory: description: "Directory containing package.json"