From 2de087772481470fd334b58aa650a44157fe5030 Mon Sep 17 00:00:00 2001 From: lideming Date: Tue, 31 Oct 2023 13:09:48 +0800 Subject: [PATCH] fix: ci --- .github/workflows/main.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57fe0e5..418b5aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ name: Build & Demo Deploy # events but only for the master branch on: push: - branches: [ master ] + branches: [master] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -19,14 +19,17 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - + + - uses: pnpm/action-setup@v2 + with: + version: 8 + + # https://pnpm.io/continuous-integration#github-actions - name: Use Node.js 18.x uses: actions/setup-node@v3 with: node-version: 18 - - - name: Install pnpm - run: npx pnpm@8 add --global pnpm@8 + cache: pnpm - name: Install dependencies run: | @@ -35,7 +38,7 @@ jobs: - name: Build run: pnpm run buildall - - name: Pre depoly + - name: Pre deploy run: pnpm run buildpages # Runs a set of commands using the runners shell