Skip to content

Commit bab4b3b

Browse files
committed
need to be able to run forked PRs
1 parent ef24891 commit bab4b3b

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/pr-validation.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v6
18-
- uses: ./.github/actions/setup-pnpm
18+
19+
# Inline setup (works with fork PRs)
20+
- uses: pnpm/action-setup@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version-file: '.nvmrc'
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile --prefer-offline
1930

2031
- name: Cache Manifest
2132
uses: actions/cache@v4
@@ -42,7 +53,18 @@ jobs:
4253
runs-on: ubuntu-latest
4354
steps:
4455
- uses: actions/checkout@v6
45-
- uses: ./.github/actions/setup-pnpm
56+
57+
# Inline setup (works with fork PRs)
58+
- uses: pnpm/action-setup@v4
59+
60+
- name: Setup Node
61+
uses: actions/setup-node@v6
62+
with:
63+
node-version-file: '.nvmrc'
64+
cache: pnpm
65+
66+
- name: Install dependencies
67+
run: pnpm install --frozen-lockfile --prefer-offline
4668

4769
- name: Cache ESLint
4870
uses: actions/cache@v4
@@ -96,7 +118,19 @@ jobs:
96118
url: ${{ steps.deploy-url.outputs.url }}
97119
steps:
98120
- uses: actions/checkout@v6
99-
- uses: ./.github/actions/setup-pnpm
121+
122+
# Inline setup (works with fork PRs)
123+
- uses: pnpm/action-setup@v4
124+
125+
- name: Setup Node
126+
uses: actions/setup-node@v6
127+
with:
128+
node-version-file: '.nvmrc'
129+
cache: pnpm
130+
131+
- name: Install dependencies
132+
run: pnpm install --frozen-lockfile --prefer-offline
133+
100134
- name: Get package version
101135
id: package-version
102136
uses: martinbeentjes/[email protected]

0 commit comments

Comments
 (0)