|
64 | 64 | key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }} |
65 | 65 | - name: Build the package on cache miss |
66 | 66 | 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 |
68 | 71 |
|
69 | 72 | - name: Run build script in playground |
70 | 73 | working-directory: ./playground |
@@ -98,7 +101,10 @@ jobs: |
98 | 101 | key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }} |
99 | 102 | - name: Build the package on cache miss |
100 | 103 | 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 |
102 | 108 | - name: Run test:unit script in vitest projects |
103 | 109 | working-directory: ./playground |
104 | 110 | run: pnpm --filter "{*vitest*}" test:unit |
@@ -137,7 +143,11 @@ jobs: |
137 | 143 | key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }} |
138 | 144 | - name: Build the package on cache miss |
139 | 145 | 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 | + |
141 | 151 | # https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62 |
142 | 152 | # Install playwright's binary under custom directory to cache |
143 | 153 | - name: Set Playwright & Cypress path |
|
0 commit comments