34 lines
No EOL
657 B
YAML
34 lines
No EOL
657 B
YAML
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 |