From c50c4b3004da70937d2ccc1d52c7ab6af0a00e39 Mon Sep 17 00:00:00 2001 From: Haziq Khairi Date: Sun, 7 Jan 2024 21:51:20 +0800 Subject: [PATCH] build: update deploy --- .github/workflows/deploy-stage.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy-stage.yaml b/.github/workflows/deploy-stage.yaml index bc1866f..8a924b6 100644 --- a/.github/workflows/deploy-stage.yaml +++ b/.github/workflows/deploy-stage.yaml @@ -16,25 +16,14 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '20' - cache: 'pnpm' - - - name: Cache pnpm Store - uses: actions/cache@v1 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- - - - name: Install pnpm - run: npm install -g pnpm + node-version: '16' + cache: 'npm' - name: Install Dependencies - run: pnpm install + run: npm install - name: Build Static Content - run: pnpm run build + run: npm run build - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@4.1.4