From f4737cfd0885e963a5b6b5d85fc6c246f75ad523 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Sat, 19 Jul 2025 17:00:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=AF=B9=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=84=9A=E6=9C=AC=E8=BF=9B=E8=A1=8C=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/script_build.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/script_build.yml diff --git a/.github/workflows/script_build.yml b/.github/workflows/script_build.yml new file mode 100644 index 0000000..4c4b4cd --- /dev/null +++ b/.github/workflows/script_build.yml @@ -0,0 +1,34 @@ +name: Todo Script Build + +on: + push: + branches: [ "main" ] + paths: [ "script/**" ] + pull_request: + branches: [ "main" ] + paths: [ "script/**" ] + workflow_dispatch: + +jobs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v4.4.0 + with: + node-version: 22 + + - name: Install dependencies + run: cd script && npm install + + - name: Build + run: npm run build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3.0.1 + with: + path: ./script/updateVersionCode.js \ No newline at end of file