From 6afdc1b8e3cab2a2a07efda0a76ca0528ecd0397 Mon Sep 17 00:00:00 2001 From: liyp Date: Sun, 30 Apr 2023 10:48:38 +0800 Subject: [PATCH] change action 1 --- .gitea/workflows/build.yaml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6bcedd2..3f9b253 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,24 +1,21 @@ -name: Deploy +name: Install pnpm and build on: [push] jobs: build: runs-on: ubuntu-latest + steps: - - name: Checkout Dashboard code - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - with: - version: latest - - name: Setup Nodejs - uses: actions/setup-node@v3 - with: - node-version: '18.x' - cache: pnpm - - name: Install package and build - run: | - pnpm install --no-frozen-lockfile - pnpm build - - - run: ls -la + - name: Checkout the code + uses: actions/checkout + + - name: Install pnpm + run: | + npm install -g pnpm + + - name: Install dependencies and build + run: | + pnpm i + pnpm build + ls -la