From 78141b061a4ce85d7e351f1c771272286e0e6494 Mon Sep 17 00:00:00 2001 From: 250king <2789260300@qq.com> Date: Fri, 27 Jun 2025 03:08:41 +0800 Subject: [PATCH] Update CI --- .github/workflows/build-check.yml | 24 ------------------------ .github/workflows/build.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/build-check.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml deleted file mode 100644 index dd0b337..0000000 --- a/.github/workflows/build-check.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Build Check - -on: - pull_request: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' # 你项目的 Node 版本 - - - name: Install dependencies - run: npm install - - - name: Run build - run: npm run build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a55efd6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build Check + +on: + pull_request: + branches: [ master ] # 替换为你的保护分支名 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' # 使用你的Node.js版本 + + - name: Install dependencies + run: npm ci + + - name: Run build + run: npm run build \ No newline at end of file