Skip to content

Commit

Permalink
No need to set cache if we are deleting the preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Aug 27, 2024
1 parent 6359643 commit 1ec29bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
node-version: 18.x

- uses: actions/cache@v4
if: github.event.action != 'closed' # Skip if the PR was closed
name: Cache NPM Packages
id: cache-npm-packages
with:
Expand All @@ -44,6 +45,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- uses: actions/cache@v4
if: github.event.action != 'closed' # Skip if the PR was closed
name: Cache Build
id: cache-build
with:
Expand Down

0 comments on commit 1ec29bb

Please sign in to comment.