Skip to content

Commit

Permalink
ci: run npm ci before purging Cloudflare edge cache
Browse files Browse the repository at this point in the history
To run scripts/purge-cache.ts, .nuxt/tsconfig.json is required.
However, it is not generated currently because `nuxt prepare` in the `postinstall` process is not executed.
  • Loading branch information
xicri committed Jan 11, 2024
1 parent 0bbd5de commit 9e1922d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ jobs:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only

- name: Purge Cloudflare cache
- name: Purge Cloudflare edge cache
run: |
npm install node-fetch esno
npm ci --omit=dev
npm install esno
npm run purge-cache

0 comments on commit 9e1922d

Please sign in to comment.