mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-03 07:25:51 +00:00
35 lines
685 B
YAML
35 lines
685 B
YAML
name: NPM Format
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "website/**"
|
|
- ".github/workflows/npm-format.yml"
|
|
pull_request:
|
|
paths:
|
|
- "website/**"
|
|
- ".github/workflows/npm-format.yml"
|
|
|
|
jobs:
|
|
website:
|
|
name: Website format check
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: website
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: website/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run format check
|
|
run: npm run format:check
|