Create CNAME #12
This file contains 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: Format Code | |
on: | |
push: | |
branches: | |
- main # 或您想要的任何分支 | |
pull_request: | |
branches: | |
- main # 或您想要的任何分支 | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' # 或您需要的 Node.js 版本 | |
- name: Install dependencies | |
run: npm install | |
- name: Run Prettier | |
run: npx prettier --write '**/*.md' # 检查格式 |