diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a6f500..db3a42b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,10 +35,31 @@ jobs: with: node-version: 18 cache: 'npm' + + - name: Setup pnpm@ + uses: pnpm/action-setup@v2 + with: + version: 8 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install dependencies - run: npm install + run: pnpm install + - name: Build - run: npm run build + run: pnpm run build - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact @@ -48,4 +69,4 @@ jobs: path: './dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2