Skip to content

Commit

Permalink
fix: run install-latest-npm in temp dir
Browse files Browse the repository at this point in the history
This fixes an issue where npx semver fails in an unreified tree
that is expected to contain the semver bin.
  • Loading branch information
lukekarrys committed Dec 4, 2023
1 parent d13658b commit 1df98ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/install-latest-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ runs:
shell: bash
env:
NODE_VERSION: ${{ inputs.node }}
working-directory: ${{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand Down
1 change: 1 addition & 0 deletions lib/content/action-install-latest-npm-yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ runs:
shell: bash
env:
NODE_VERSION: $\{{ inputs.node }}
working-directory: $\{{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand Down
3 changes: 3 additions & 0 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ runs:
shell: bash
env:
NODE_VERSION: \${{ inputs.node }}
working-directory: \${{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand Down Expand Up @@ -1557,6 +1558,7 @@ runs:
shell: bash
env:
NODE_VERSION: \${{ inputs.node }}
working-directory: \${{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand Down Expand Up @@ -3321,6 +3323,7 @@ runs:
shell: bash
env:
NODE_VERSION: \${{ inputs.node }}
working-directory: \${{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand Down

0 comments on commit 1df98ef

Please sign in to comment.