Skip to content

Commit 3aeb41b

Browse files
committed
fix workflow files and add node-fetch
1 parent 0b79635 commit 3aeb41b

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed

.github/workflows/links.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
node-version: 20.12.0
1515

1616
- name: Install packages
17-
run: npm install
17+
run: pnpm install
1818
- name: Install bun
19-
run: npm install -g bun
19+
run: pnpm install -g bun
2020
- name: Links
21-
run: npm run links
21+
run: pnpm run links
2222
env:
2323
BASE_URL: ${{ github.event.deployment_status.target_url }}

.github/workflows/lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
node-version: 20.12.0
1818

1919
- name: Install packages
20-
run: npm install
20+
run: pnpm install
2121
- name: Lint
22-
run: npm run lint
22+
run: pnpm run lint
2323
- name: Next Build (because it's more strict)
24-
run: npm run build
24+
run: pnpm run build
2525
env:
2626
NEXT_PUBLIC_SITE_URL: 'https://replay.io'
2727
- name: Check formatting
28-
run: npm run prettier:ci
28+
run: pnpm run prettier:ci

.github/workflows/playwright.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
with:
2525
node-version: lts/*
2626
- name: Install dependencies
27-
run: npm ci
27+
run: pnpm ci
2828
- name: Install Replay Chromium
29-
run: npx replayio install
29+
run: pnpx replayio install
3030
- name: Run Playwright tests
31-
run: npx playwright test --project replay-chromium
31+
run: pnpx playwright test --project replay-chromium
3232
env:
3333
BASE_URL: ${{ needs.wait-for-vercel.outputs.preview_url }}
3434
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"eslint": "^8.56.0",
5757
"eslint-config-next": "^14.0.4",
5858
"marked": "^12.0.1",
59+
"node-fetch": "^3.3.2",
5960
"prettier": "^3.3.2",
6061
"prettier-plugin-tailwindcss": "^0.5.14",
6162
"sharp": "0.33.1"

pnpm-lock.yaml

+32-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)