diff --git a/.github/workflows/actions/install-dependencies/action.yml b/.github/workflows/actions/install-dependencies/action.yml index 6f96a80eb786..aeeb810bd529 100644 --- a/.github/workflows/actions/install-dependencies/action.yml +++ b/.github/workflows/actions/install-dependencies/action.yml @@ -1,6 +1,11 @@ name: Install Dependencies description: Sets up Node and its package manager, then installs all dependencies +inputs: + version: + default: 'lts/*' + type: string + runs: using: composite steps: @@ -12,7 +17,7 @@ runs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ inputs.version }} cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 7258a3eae32e..a1bd755b1e15 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -36,6 +36,8 @@ jobs: - name: Install Dependencies uses: ./.github/workflows/actions/install-dependencies + with: + version: ${{ matrix.node }} - name: Setup Solana Test Validator id: start-test-validator