diff --git a/.github/workflows/deploy-stage.yaml b/.github/workflows/deploy-stage.yaml index ae1a6b0..e5a18ec 100644 --- a/.github/workflows/deploy-stage.yaml +++ b/.github/workflows/deploy-stage.yaml @@ -27,13 +27,26 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: '18' - cache: 'pnpm' + node-version: 16 - - name: Install pnpm - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v2 + name: Install pnpm with: - version: '8' + 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: pnpm install @@ -47,7 +60,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: './dist' # Ensure your build output is in the 'dist' directory + path: './dist' # Ensure build output is in the 'dist' directory - name: Deploy to GitHub Pages id: deployment