Skip to content

Commit 7c4c1c8

Browse files
committed
try to update lint.yml
1 parent b103b5b commit 7c4c1c8

File tree

3 files changed

+24
-35
lines changed

3 files changed

+24
-35
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ jobs:
2727
- name: Install pnpm
2828
uses: pnpm/action-setup@v4
2929
with:
30-
version: 10
30+
cache: true
3131

3232
- name: Setup Node
3333
uses: actions/setup-node@v6
3434
with:
3535
node-version-file: package.json
3636
check-latest: true
37-
cache: 'pnpm'
38-
package-manager-cache: false
37+
cache: pnpm
3938

4039
- name: Setup Pages
4140
uses: actions/configure-pages@v5

.github/workflows/lint.yml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,20 @@ jobs:
2626
git config --global user.name 'github-actions[bot]'
2727
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
2828
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
cache: true
33+
2934
- name: Setup Node
3035
uses: actions/setup-node@v6
3136
with:
3237
node-version-file: package.json
3338
check-latest: true
34-
#cache: yarn
35-
package-manager-cache: false
39+
cache: pnpm
3640

37-
- name: Setup yarn
38-
run: |
39-
corepack enable
40-
yarn set version stable
41-
42-
- name: Get yarn cachedir
43-
id: yarn-cachedir
44-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
45-
- name: Cache yarn
46-
uses: actions/cache@v5
47-
with:
48-
path: ${{ steps.yarn-cachedir.outputs.dir }}
49-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
50-
restore-keys: |
51-
${{ runner.os }}-yarn-
52-
53-
- name: Install dependencies (yarn)
54-
run: yarn install
55-
56-
- name: Cache apt
57-
uses: awalsh128/cache-apt-pkgs-action@latest
58-
with:
59-
packages: clang-format-19 clang-tidy-19
60-
execute_install_scripts: true
41+
# - name: Install dependencies (pnpm)
42+
# run: pnpm install
6143

6244
- name: Cpp Lint (clang-format & clang-tidy)
6345
uses: cpp-linter/cpp-linter-action@v2
@@ -71,11 +53,11 @@ jobs:
7153
continue-on-error: true
7254

7355
- name: ESLint (+vue +prettier +ts)
74-
run: yarn run eslint --fix --ignore-pattern .gitignore
75-
continue-on-error: true
56+
run: pnpx eslint --fix --ignore-pattern .gitignore
57+
continue-on-eror: true
7658

7759
- name: Prettier
78-
run: yarn run prettier --write .
60+
run: pnpx prettier --write .
7961
continue-on-error: true
8062

8163
- name: Markdown Lint
@@ -89,7 +71,6 @@ jobs:
8971
- name: Autocorrect Fix
9072
uses: huacnlee/autocorrect-action@v2
9173
with:
92-
use_npm: true
9374
args: --fix
9475
continue-on-error: true
9576

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,14 @@
4040
"vitepress": "^1.6.4",
4141
"vitepress-plugin-mermaid": "^2.0.17",
4242
"vue": "^3.5.26"
43-
}
44-
}
43+
},
44+
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
45+
}
46+
47+
48+
49+
50+
51+
52+
53+

0 commit comments

Comments
 (0)