Skip to content

Commit b7417c1

Browse files
committed
ci: is it because of the cd command messed up the working directory?
1 parent 788e34d commit b7417c1

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
6565
- name: Build the package on cache miss
6666
if: steps.cache-restore.outputs.cache-hit != 'true'
67-
run: pnpm install && pnpm build && pnpm snapshot && cd playground && pnpm install --no-frozen-lockfile
67+
run: pnpm install && pnpm build && pnpm snapshot
68+
- name: Install dependencies in playground
69+
working-directory: ./playground
70+
run: pnpm install --no-frozen-lockfile
6871

6972
- name: Run build script in playground
7073
working-directory: ./playground
@@ -98,7 +101,10 @@ jobs:
98101
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
99102
- name: Build the package on cache miss
100103
if: steps.cache-restore.outputs.cache-hit != 'true'
101-
run: pnpm install && pnpm build && pnpm snapshot && cd playground && pnpm install --no-frozen-lockfile
104+
run: pnpm install && pnpm build && pnpm snapshot
105+
- name: Install dependencies in playground
106+
working-directory: ./playground
107+
run: pnpm install --no-frozen-lockfile
102108
- name: Run test:unit script in vitest projects
103109
working-directory: ./playground
104110
run: pnpm --filter "{*vitest*}" test:unit
@@ -137,7 +143,11 @@ jobs:
137143
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
138144
- name: Build the package on cache miss
139145
if: steps.cache-restore.outputs.cache-hit != 'true'
140-
run: pnpm install && pnpm build && pnpm snapshot && cd playground && pnpm install --no-frozen-lockfile
146+
run: pnpm install && pnpm build && pnpm snapshot
147+
- name: Install dependencies in playground
148+
working-directory: ./playground
149+
run: pnpm install --no-frozen-lockfile
150+
141151
# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62
142152
# Install playwright's binary under custom directory to cache
143153
- name: Set Playwright & Cypress path

0 commit comments

Comments
 (0)