Skip to content

Commit

Permalink
ci: must move playground; but does it work without empty package.json?
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Dec 18, 2024
1 parent 228b568 commit 7f3aa21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ jobs:
playground
key: ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Build the package on cache miss
run: pnpm install && pnpm build && pnpm snapshot && echo "{}" > playground/package.json
run: pnpm install && pnpm build && pnpm snapshot
- name: Move playground to work around weird working-directory issue
run: mv playground ../playground
- name: Install dependencies in playground
working-directory: ./playground
working-directory: ../playground
run: pnpm install --no-frozen-lockfile -r

- name: Run build script in playground
working-directory: ./playground
working-directory: ../playground
run: pnpm --filter "*" build

# test-vitest:
Expand Down

0 comments on commit 7f3aa21

Please sign in to comment.