File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,17 +20,22 @@ jobs:
2020 steps :
2121 - uses : actions/checkout@v4
2222
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ run_install : false
27+
2328 - name : Use Node.js ${{ env.NODE_VERSION }}
2429 uses : actions/setup-node@v4
2530 with :
2631 node-version : ${{ env.NODE_VERSION }}
27- cache : " npm "
32+ cache : " pnpm "
2833
2934 - name : Install dependencies
30- run : npm ci
35+ run : pnpm install --frozen-lockfile
3136
3237 - name : Build
33- run : npm run build
38+ run : pnpm build
3439 env :
3540 NEXT_PUBLIC_POSTHOG_KEY : ${{ secrets.POSTHOG_KEY }}
3641 NEXT_PUBLIC_POSTHOG_HOST : ${{ secrets.POSTHOG_HOST || 'https://app.posthog.com' }}
@@ -44,17 +49,22 @@ jobs:
4449 steps :
4550 - uses : actions/checkout@v4
4651
52+ - name : Setup pnpm
53+ uses : pnpm/action-setup@v4
54+ with :
55+ run_install : false
56+
4757 - name : Use Node.js ${{ env.NODE_VERSION }}
4858 uses : actions/setup-node@v4
4959 with :
5060 node-version : ${{ env.NODE_VERSION }}
51- cache : " npm "
61+ cache : " pnpm "
5262
5363 - name : Install dependencies
54- run : npm ci
64+ run : pnpm install --frozen-lockfile
5565
5666 - name : Build
57- run : npm run build
67+ run : pnpm build
5868 env :
5969 NEXT_PUBLIC_POSTHOG_KEY : ${{ secrets.POSTHOG_KEY }}
6070 NEXT_PUBLIC_POSTHOG_HOST : ${{ secrets.POSTHOG_HOST || 'https://app.posthog.com' }}
You can’t perform that action at this time.
0 commit comments