diff --git a/.github/workflows/commit-preview.yaml b/.github/workflows/commit-preview.yaml index 424d3313..60dd5670 100644 --- a/.github/workflows/commit-preview.yaml +++ b/.github/workflows/commit-preview.yaml @@ -19,17 +19,15 @@ jobs: fetch-depth: 0 filter: 'blob:none' - - name: Setup Node.js - uses: actions/setup-node@v4 + - name: Setup PNPM and install dependencies + uses: pnpm/action-setup@v4 with: - cache: "npm" - node-version: "20" - - - name: Install dependencies - run: npm ci + version: latest + run_install: | + - args: [--frozen-lockfile] - name: Build the project - run: npm run build + run: pnpm run build - name: Upload HTML artifact uses: actions/upload-artifact@v4