Skip to content

Commit 8cf9707

Browse files
committed
ci: add package.json in playground
1 parent 93f3eaf commit 8cf9707

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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
67+
run: pnpm install && pnpm build && pnpm snapshot && echo "{}" > playground/package.json
6868
- name: Move playground to an outside directory to work around working-directory issue
6969
if: steps.cache-restore.outputs.cache-hit != 'true'
7070
run: mv playground ../playground
@@ -104,7 +104,7 @@ jobs:
104104
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
105105
- name: Build the package on cache miss
106106
if: steps.cache-restore.outputs.cache-hit != 'true'
107-
run: pnpm install && pnpm build && pnpm snapshot
107+
run: pnpm install && pnpm build && pnpm snapshot && echo "{}" > playground/package.json
108108
- name: Move playground to an outside directory to work around working-directory issue
109109
if: steps.cache-restore.outputs.cache-hit != 'true'
110110
run: mv playground ../playground
@@ -149,7 +149,7 @@ jobs:
149149
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
150150
- name: Build the package on cache miss
151151
if: steps.cache-restore.outputs.cache-hit != 'true'
152-
run: pnpm install && pnpm build && pnpm snapshot
152+
run: pnpm install && pnpm build && pnpm snapshot && echo "{}" > playground/package.json
153153
- name: Move playground to an outside directory to work around working-directory issue
154154
if: steps.cache-restore.outputs.cache-hit != 'true'
155155
run: mv playground ../playground

0 commit comments

Comments
 (0)