diff --git a/.github/workflows/deploy-to-github-pages.yml b/.github/workflows/deploy-to-github-pages.yml index bba8806..fdb737f 100644 --- a/.github/workflows/deploy-to-github-pages.yml +++ b/.github/workflows/deploy-to-github-pages.yml @@ -36,12 +36,19 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22.x - cache: pnpm + + - name: Install PNPM + run: npm i pnpm -g + + - name: Cache node_modules Directory + uses: actions/cache@v4 + id: node_modules-cache + with: + path: node_modules + key: ${{ runner.OS }}-node_modules-cache-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies - run: | - npm i pnpm -g - pnpm i + run: pnpm i - name: Build run: pnpm build