From c51079265dd0e8d13b0ed7cc369d6c72be367cb2 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:21:01 -0700 Subject: [PATCH] Infer Node.js version from downstream package.json --- .github/workflows/make_pr_for_downstream_repo.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/make_pr_for_downstream_repo.yaml b/.github/workflows/make_pr_for_downstream_repo.yaml index 4bb838b1e..55be2d661 100644 --- a/.github/workflows/make_pr_for_downstream_repo.yaml +++ b/.github/workflows/make_pr_for_downstream_repo.yaml @@ -45,10 +45,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-node@v4 - with: - node-version: '16' - - name: Checkout downstream repo uses: actions/checkout@v4 with: @@ -56,6 +52,10 @@ jobs: path: ${{ env.DESTINATION_REPO_DIR }} token: ${{ secrets.GH_TOKEN_NEXTSTRAIN_BOT_REPO }} + - uses: actions/setup-node@v4 + with: + node-version-file: ${{ env.DESTINATION_REPO_DIR }}/${{ inputs.directory }}/package.json + - name: Install Auspice from PRs HEAD commit shell: bash working-directory: ${{ env.DESTINATION_REPO_DIR }}/${{ inputs.directory }}