Skip to content

Commit 414386c

Browse files
committed
ci: fix build with clarity id
1 parent 7b18671 commit 414386c

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
run: npm install
4141

4242
- name: Build
43+
env:
44+
NUXT_CLARITY_ID: ${{ secrets.CLARITY_ID }}
4345
run: npm run build
4446

4547
- name: Deploy

.github/workflows/pr-preview.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,21 @@ jobs:
6060
| :--- | :----- | :------ |
6161
| ${{env.BRANCH_NAME}} | 🔨 Building ([Logs](${{env.ACTION_RUN}})) | waiting... |
6262
63-
# Build Rust Page
64-
- uses: oven-sh/setup-bun@v1
63+
# Build Page
64+
- name: NodeJS Cache
65+
uses: actions/cache@v4
66+
with:
67+
path: ~/.npm
68+
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
69+
restore-keys: |
70+
${{ runner.OS }}-npm-cache-
71+
6572
- name: Install Deps
66-
run: bun install
73+
run: npm install
6774
- name: Build
68-
run: bun run build --preset=cloudflare_pages
75+
env:
76+
NUXT_CLARITY_ID: ${{ secrets.CLARITY_ID }}
77+
run: npm run build --preset=cloudflare_pages
6978

7079
# Deploy steps
7180
- name: Deploy

0 commit comments

Comments
 (0)