[chore](新文件的展示逻辑): 修改了创建新建的文件的展示统一,以及防抖动 #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- dev | |
- main | |
- release | |
jobs: | |
lint-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up the latest Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.9.0 # Use the latest LTS version of Node.js | |
cache: 'npm' | |
# Upgrade npm to the latest version | |
- name: Upgrade npm | |
run: npm install -g npm@latest | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Run lint | |
- name: Run ESLint | |
run: npm run lint | |
# Run build | |
- name: Build project | |
run: npm run build |