fix: 修复工作流错误

This commit is contained in:
Super12138 2025-07-19 17:08:20 +08:00 committed by GitHub
parent f4737cfd08
commit 1174c4d2f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,25 +10,27 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
runs-on: ubuntu-latest build:
steps: runs-on: ubuntu-latest
- name: Checkout steps:
uses: actions/checkout@v4.2.2 - name: Checkout
with: uses: actions/checkout@v4.2.2
fetch-depth: 0 with:
fetch-depth: 0
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4.4.0 uses: actions/setup-node@v4.4.0
with: with:
node-version: 22 node-version: 22
- name: Install dependencies - name: Install dependencies
run: cd script && npm install run: cd script && npm install
- name: Build - name: Build
run: npm run build run: cd script && npm run build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1 uses: actions/upload-artifact@v4.6.2
with: with:
path: ./script/updateVersionCode.js name: Todo Script
path: ./script/updateVersionCode.js