Skip to content

Commit

Permalink
Infer Node.js version from downstream package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Apr 10, 2024
1 parent f3de41f commit c510792
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/make_pr_for_downstream_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ 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:
repository: ${{ inputs.repository }}
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 }}
Expand Down

0 comments on commit c510792

Please sign in to comment.