File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,12 +41,35 @@ jobs:
4141 uses : actions/upload-artifact@v7
4242 with :
4343 name : amicons
44- path : |
45- amicons/dist
46- amicons/node_modules
44+ path : amicons/dist
45+
46+ check :
47+ runs-on : ubuntu-latest
48+ defaults :
49+ run :
50+ working-directory : docs
51+ steps :
52+ - name : Checkout
53+ uses : actions/checkout@v6
54+ - name : Set up pnpm
55+ uses : pnpm/action-setup@v5
56+ with :
57+ version : 10.33.0
58+ - name : Set up Node 24
59+ uses : actions/setup-node@v6
60+ with :
61+ node-version : 24.x
62+ cache : " pnpm"
63+ cache-dependency-path : docs/pnpm-lock.yaml
64+ - name : Install dependencies
65+ run : pnpm install --frozen-lockfile --ignore-scripts
66+ - name : Check formatting
67+ run : pnpm format
68+ - name : Lint
69+ run : pnpm lint
4770
4871 deploy :
49- needs : build
72+ needs : [ build, check]
5073 environment :
5174 name : github-pages
5275 url : ${{ steps.deployment.outputs.page_url }}
@@ -68,13 +91,10 @@ jobs:
6891 cache : " pnpm"
6992 cache-dependency-path : docs/pnpm-lock.yaml
7093 - name : Download artifact
71- id : download
7294 uses : actions/download-artifact@v8
7395 with :
7496 name : amicons
75- path : amicons
7697 - name : Install dependencies
77- if : steps.download.outcome == 'success'
7898 run : pnpm install --frozen-lockfile
7999 - name : Build
80100 run : pnpm build
You can’t perform that action at this time.
0 commit comments