Skip to content

Commit 1df98ef

Browse files
committed
fix: run install-latest-npm in temp dir
This fixes an issue where npx semver fails in an unreified tree that is expected to contain the semver bin.
1 parent d13658b commit 1df98ef

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/actions/install-latest-npm/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ runs:
2929
shell: bash
3030
env:
3131
NODE_VERSION: ${{ inputs.node }}
32+
working-directory: ${{ runner.temp }}
3233
run: |
3334
MATCH=""
3435
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")

lib/content/action-install-latest-npm-yml.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ runs:
2727
shell: bash
2828
env:
2929
NODE_VERSION: $\{{ inputs.node }}
30+
working-directory: $\{{ runner.temp }}
3031
run: |
3132
MATCH=""
3233
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")

tap-snapshots/test/apply/source-snapshots.js.test.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ runs:
130130
shell: bash
131131
env:
132132
NODE_VERSION: \${{ inputs.node }}
133+
working-directory: \${{ runner.temp }}
133134
run: |
134135
MATCH=""
135136
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
@@ -1557,6 +1558,7 @@ runs:
15571558
shell: bash
15581559
env:
15591560
NODE_VERSION: \${{ inputs.node }}
1561+
working-directory: \${{ runner.temp }}
15601562
run: |
15611563
MATCH=""
15621564
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
@@ -3321,6 +3323,7 @@ runs:
33213323
shell: bash
33223324
env:
33233325
NODE_VERSION: \${{ inputs.node }}
3326+
working-directory: \${{ runner.temp }}
33243327
run: |
33253328
MATCH=""
33263329
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy