VerveDo/.github/workflows/script_build.yml
2025-10-02 10:19:13 +08:00

37 lines
No EOL
761 B
YAML

name: Todo Script Build
on:
push:
branches: [ "main" ]
paths: [ "script/**" ]
pull_request:
branches: [ "main" ]
paths: [ "script/**" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v5.0.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: cd script && pnpm install
- name: Build
run: cd script && pnpm run build
- name: Upload artifact
uses: actions/upload-artifact@v4.6.2
with:
name: Todo Script
path: ./script/updateVersionCode.js