Skip to content

Commit 04a21fa

Browse files
JZ LohJZ Loh
authored andcommitted
modify github action
1 parent 34079de commit 04a21fa

4 files changed

Lines changed: 11923 additions & 7 deletions

File tree

.github/workflows/lint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ jobs:
1717
matrix:
1818
node-version: [20.x]
1919
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
20+
- name: Checkout
21+
uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 0
2424
lfs: true
2525

2626
- name: Checkout LFS objects
2727
run: git lfs checkout
2828

29-
- uses: pnpm/action-setup@v4.0.0
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 10
3033

3134
- name: Use Node.js ${{ matrix.node-version }}
3235
uses: actions/setup-node@v4
@@ -38,4 +41,4 @@ jobs:
3841
run: pnpm install
3942

4043
- name: Run Lint
41-
run: pnpm lint
44+
run: pnpm lint

docs/Linux/SDK编译环境搭建.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# 编译环境搭建
22

3-
<font color = red> 特别说明: 不能放在虚拟机的共享文件夹中编译!!! </font>
4-
5-
63

74
---
85

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"deploy": "docusaurus deploy",
1111
"clear": "docusaurus clear",
1212
"serve": "docusaurus serve",
13+
"lint": "eslint ./src ./docs --ext .js,.jsx,.ts,.tsx,.md,.mdx",
14+
"lint:style": "stylelint ./packages/**/*.{css,scss}",
1315
"write-translations": "docusaurus write-translations",
1416
"write-heading-ids": "docusaurus write-heading-ids",
1517
"typecheck": "tsc"
@@ -27,6 +29,9 @@
2729
"@docusaurus/module-type-aliases": "3.9.2",
2830
"@docusaurus/tsconfig": "3.9.2",
2931
"@docusaurus/types": "3.9.2",
32+
"@typescript-eslint/eslint-plugin": "^8.48.0",
33+
"@typescript-eslint/parser": "^8.48.0",
34+
"eslint": "^9.39.1",
3035
"typescript": "~5.6.2"
3136
},
3237
"browserslist": {

0 commit comments

Comments
 (0)