44 APP_NAME : hyper-fs
55 MACOSX_DEPLOYMENT_TARGET : ' 10.13'
66 CARGO_INCREMENTAL : ' 1'
7+ NODE_VERSION : ' 20'
78' on ' :
89 push :
910 branches :
@@ -25,20 +26,22 @@ jobs:
2526 name : Lint
2627 runs-on : ubuntu-latest
2728 steps :
28- - uses : actions/checkout@v6
29+ - uses : actions/checkout@v4
30+ - name : Install pnpm
31+ uses : pnpm/action-setup@v4
2932 - name : Setup node
30- uses : actions/setup-node@v6
33+ uses : actions/setup-node@v4
3134 with :
32- node-version : 24
33- cache : yarn
35+ node-version : ${{ env.NODE_VERSION }}
36+ cache : pnpm
3437 - name : Install
3538 uses : dtolnay/rust-toolchain@stable
3639 with :
3740 components : clippy, rustfmt
3841 - name : Install dependencies
39- run : yarn install
42+ run : pnpm install
4043 - name : Oxlint
41- run : yarn lint
44+ run : pnpm lint
4245 - name : Cargo fmt
4346 run : cargo fmt -- --check
4447 - name : Clippy
@@ -50,25 +53,27 @@ jobs:
5053 settings :
5154 - host : macos-latest
5255 target : x86_64-apple-darwin
53- build : yarn build --target x86_64-apple-darwin
56+ build : pnpm build --target x86_64-apple-darwin
5457 - host : windows-latest
55- build : yarn build --target x86_64-pc-windows-msvc
58+ build : pnpm build --target x86_64-pc-windows-msvc
5659 target : x86_64-pc-windows-msvc
5760 - host : ubuntu-latest
5861 target : x86_64-unknown-linux-gnu
59- build : yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
62+ build : pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
6063 - host : macos-latest
6164 target : aarch64-apple-darwin
62- build : yarn build --target aarch64-apple-darwin
65+ build : pnpm build --target aarch64-apple-darwin
6366 name : stable - ${{ matrix.settings.target }} - node@22
6467 runs-on : ${{ matrix.settings.host }}
6568 steps :
66- - uses : actions/checkout@v6
69+ - uses : actions/checkout@v4
70+ - name : Install pnpm
71+ uses : pnpm/action-setup@v4
6772 - name : Setup node
68- uses : actions/setup-node@v6
73+ uses : actions/setup-node@v4
6974 with :
70- node-version : 24
71- cache : yarn
75+ node-version : ${{ env.NODE_VERSION }}
76+ cache : pnpm
7277 - name : Install
7378 uses : dtolnay/rust-toolchain@stable
7479 with :
@@ -101,7 +106,7 @@ jobs:
101106 if : ${{ matrix.settings.setup }}
102107 shell : bash
103108 - name : Install dependencies
104- run : yarn install
109+ run : pnpm install
105110 - name : Build
106111 run : ${{ matrix.settings.build }}
107112 shell : bash
@@ -135,15 +140,17 @@ jobs:
135140 - ' 22'
136141 runs-on : ${{ matrix.settings.host }}
137142 steps :
138- - uses : actions/checkout@v6
143+ - uses : actions/checkout@v4
144+ - name : Install pnpm
145+ uses : pnpm/action-setup@v4
139146 - name : Setup node
140- uses : actions/setup-node@v6
147+ uses : actions/setup-node@v4
141148 with :
142149 node-version : ${{ matrix.node }}
143- cache : yarn
150+ cache : pnpm
144151 architecture : ${{ matrix.settings.architecture }}
145152 - name : Install dependencies
146- run : yarn install
153+ run : pnpm install
147154 - name : Download artifacts
148155 uses : actions/download-artifact@v6
149156 with :
@@ -153,7 +160,7 @@ jobs:
153160 run : ls -R .
154161 shell : bash
155162 - name : Test bindings
156- run : yarn test
163+ run : pnpm test
157164 test-linux-binding :
158165 name : Test ${{ matrix.target }} - node@${{ matrix.node }}
159166 needs :
@@ -168,12 +175,14 @@ jobs:
168175 - ' 22'
169176 runs-on : ${{ contains(matrix.target, 'aarch64') && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
170177 steps :
171- - uses : actions/checkout@v6
178+ - uses : actions/checkout@v4
179+ - name : Install pnpm
180+ uses : pnpm/action-setup@v4
172181 - name : Setup node
173- uses : actions/setup-node@v6
182+ uses : actions/setup-node@v4
174183 with :
175184 node-version : ${{ matrix.node }}
176- cache : yarn
185+ cache : pnpm
177186 - name : Output docker params
178187 id : docker
179188 run : |
@@ -195,9 +204,9 @@ jobs:
195204 " >> $GITHUB_OUTPUT
196205 - name : Install dependencies
197206 run : |
198- yarn config set --json supportedArchitectures.cpu '[ "current", "arm64", "x64", "arm"]'
199- yarn config set --json supportedArchitectures.libc '[ "current", "musl", "gnu"]'
200- yarn install
207+ pnpm config set supportedArchitectures.cpu "[\ "current\ ", \ "arm64\ ", \ "x64\ ", \ "arm\"]" --json
208+ pnpm config set supportedArchitectures.libc "[\ "current\ ", \ "musl\ ", \ "gnu\"]" --json
209+ pnpm install
201210 - name : Download artifacts
202211 uses : actions/download-artifact@v6
203212 with :
@@ -218,7 +227,7 @@ jobs:
218227 with :
219228 image : ${{ steps.docker.outputs.IMAGE }}
220229 options : ' -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
221- run : yarn test
230+ run : corepack enable && pnpm test
222231 publish :
223232 name : Publish
224233 runs-on : ubuntu-latest
@@ -230,22 +239,24 @@ jobs:
230239 - test-macOS-windows-binding
231240 - test-linux-binding
232241 steps :
233- - uses : actions/checkout@v6
242+ - uses : actions/checkout@v4
243+ - name : Install pnpm
244+ uses : pnpm/action-setup@v4
234245 - name : Setup node
235- uses : actions/setup-node@v6
246+ uses : actions/setup-node@v4
236247 with :
237- node-version : 24
238- cache : yarn
248+ node-version : ${{ env.NODE_VERSION }}
249+ cache : pnpm
239250 - name : Install dependencies
240- run : yarn install
251+ run : pnpm install
241252 - name : create npm dirs
242- run : yarn napi create-npm-dirs
253+ run : pnpm napi create-npm-dirs
243254 - name : Download all artifacts
244- uses : actions/download-artifact@v6
255+ uses : actions/download-artifact@v4 # v4 is standard, v6 is user specific maybe? keeping consistent with other edits
245256 with :
246257 path : artifacts
247258 - name : Move artifacts
248- run : yarn artifacts
259+ run : pnpm artifacts
249260 - name : List packages
250261 run : ls -R ./npm
251262 shell : bash
0 commit comments