From 8c844eb23af148d298b6d3bddc9ea2f425000032 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Mon, 11 Jul 2022 23:38:57 +0800 Subject: [PATCH] chore: Use pnpm in GitHub action --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5e81010..d21ee33 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: update +name: build on: push: branches: @@ -21,16 +21,16 @@ jobs: with: node-version: "14" - name: Install dependencies - run: cd backend && npm i + run: npm install -g pnpm && cd backend && pnpm i - name: Test - run: cd backend && npm test + run: cd backend && pnpm test - name: Build - run: cd backend && npm run build + run: cd backend && pnpm run build - name: Commit changes if: contains(github.event.head_commit.message, '#build') run: | git config user.email github-actions git config user.name github-actions@github.com git add . - git commit -m "Build sub-store.min.js" -a + git commit -m "Release" -a git push