Skip to content

Commit 48927e6

Browse files
authored
Merge branch 'main' into out-of-office
2 parents e26484e + 64b2cf0 commit 48927e6

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/nextjs-bundle-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
- uses: actions/checkout@v4
5656
- uses: ./.github/actions/dangerous-git-checkout
5757
- uses: ./.github/actions/yarn-install
58+
- run: yarn prisma generate
5859
- uses: ./.github/actions/cache-build
5960
- name: Analyze bundle
6061
run: |

.github/workflows/production-build-without-database.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44

55
permissions:
66
contents: read
7+
actions: write
78

89
env:
910
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
@@ -44,4 +45,27 @@ jobs:
4445
- uses: actions/checkout@v4
4546
- uses: ./.github/actions/dangerous-git-checkout
4647
- uses: ./.github/actions/yarn-install
48+
- run: yarn prisma generate
49+
- name: Generate cache key
50+
id: cache-key
51+
uses: ./.github/actions/cache-build-key
52+
with:
53+
branch_key: ${{ github.head_ref || github.ref_name }}
54+
- name: Check if production build cache exists
55+
uses: actions/cache@v4
56+
id: cache-check
57+
with:
58+
path: |
59+
${{ github.workspace }}/apps/web/.next
60+
${{ github.workspace }}/apps/web/public/embed
61+
**/.turbo/**
62+
**/dist/**
63+
key: ${{ steps.cache-key.outputs.key }}
64+
lookup-only: true
65+
- name: Delete old production build caches for this branch
66+
if: steps.cache-check.outputs.cache-hit != 'true'
67+
uses: useblacksmith/cache-delete@v1
68+
with:
69+
key: prod-build-${{ github.head_ref || github.ref_name }}
70+
prefix: "true"
4771
- uses: ./.github/actions/cache-build

0 commit comments

Comments
 (0)