From 534ad7032182b1642a87130c8925a31849088a10 Mon Sep 17 00:00:00 2001 From: Li Feng Date: Sat, 6 Apr 2024 19:17:27 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d65966..97012ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,24 +17,17 @@ jobs: uses: actions/checkout@v2 with: persist-credentials: false - + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: '18.x' - name: Install rsync run: sudo apt-get install rsync -y - - - name: Install pnpm - uses: pnpm/action-setup@v2.4.0 - with: - version: 8 - run_install: true - - - name: pnpm i - run: pnpm i - - - name: Set Debug Environment Variable - run: echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV - - - name: build - run: npx craco build + + - name: Install npm dependencies + run: npm install + - name: Run build task + run: set process.env.CI=false && npx craco build - name: Deploy to Server uses: easingthemes/ssh-deploy@v5.0.0