diff --git a/.github/workflows/actions/install-dependencies/action.yml b/.github/workflows/actions/install-dependencies/action.yml index 6f96a80eb78..aeeb810bd52 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 7258a3eae32..a1bd755b1e1 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