Skip to content

Commit 8bf4f12

Browse files
authored
Feat/static ci (#2756)
* chore: update static ci * chore: update static.yml
1 parent c64a5e2 commit 8bf4f12

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.github/workflows/static.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,26 @@ jobs:
3434
with:
3535
node-version: '18'
3636

37+
- name: Setup pnpm
38+
run: |
39+
npm install --global corepack@latest
40+
corepack enable
41+
corepack prepare pnpm@latest --activate
42+
echo "$(pnpm bin --global)" >> $GITHUB_PATH
43+
3744
- name: Install dependencies
3845
run: pnpm install
3946

47+
- name: Cache pnpm dependencies
48+
uses: actions/cache@v3
49+
with:
50+
path: |
51+
~/.pnpm-store
52+
node_modules
53+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
54+
restore-keys: |
55+
${{ runner.os }}-pnpm-
56+
4057
- name: Build documentation
4158
run: pnpm run build:doc
4259

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"ignoreUnknown": true
4+
"ignoreUnknown": true,
5+
"include": ["./**/*.{js,jsx,ts,tsx,json,yml,yaml}"]
56
},
67
"vcs": {
78
"enabled": true,

docs/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ footer: Open-source MIT Licensed | Copyright © 2019-present<br />Powered by [du
3030
- Contains a comprehensive collection of basic Hooks
3131
- Written in TypeScript with predictable static types
3232

33+
3334
## 📦 Install
3435

3536
```bash

0 commit comments

Comments
 (0)