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,24 @@ 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
32+ with :
33+ version : 9
2934 - name : Setup node
30- uses : actions/setup-node@v6
35+ uses : actions/setup-node@v4
3136 with :
32- node-version : 24
33- cache : yarn
37+ node-version : ${{ env.NODE_VERSION }}
38+ cache : pnpm
3439 - name : Install
3540 uses : dtolnay/rust-toolchain@stable
3641 with :
3742 components : clippy, rustfmt
3843 - name : Install dependencies
39- run : yarn install
44+ run : pnpm install
4045 - name : Oxlint
41- run : yarn lint
46+ run : pnpm lint
4247 - name : Cargo fmt
4348 run : cargo fmt -- --check
4449 - name : Clippy
@@ -50,25 +55,29 @@ jobs:
5055 settings :
5156 - host : macos-latest
5257 target : x86_64-apple-darwin
53- build : yarn build --target x86_64-apple-darwin
58+ build : pnpm build --target x86_64-apple-darwin
5459 - host : windows-latest
55- build : yarn build --target x86_64-pc-windows-msvc
60+ build : pnpm build --target x86_64-pc-windows-msvc
5661 target : x86_64-pc-windows-msvc
5762 - host : ubuntu-latest
5863 target : x86_64-unknown-linux-gnu
59- build : yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
64+ build : pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
6065 - host : macos-latest
6166 target : aarch64-apple-darwin
62- build : yarn build --target aarch64-apple-darwin
67+ build : pnpm build --target aarch64-apple-darwin
6368 name : stable - ${{ matrix.settings.target }} - node@22
6469 runs-on : ${{ matrix.settings.host }}
6570 steps :
66- - uses : actions/checkout@v6
71+ - uses : actions/checkout@v4
72+ - name : Install pnpm
73+ uses : pnpm/action-setup@v4
74+ with :
75+ version : 9
6776 - name : Setup node
68- uses : actions/setup-node@v6
77+ uses : actions/setup-node@v4
6978 with :
70- node-version : 24
71- cache : yarn
79+ node-version : ${{ env.NODE_VERSION }}
80+ cache : pnpm
7281 - name : Install
7382 uses : dtolnay/rust-toolchain@stable
7483 with :
@@ -101,7 +110,7 @@ jobs:
101110 if : ${{ matrix.settings.setup }}
102111 shell : bash
103112 - name : Install dependencies
104- run : yarn install
113+ run : pnpm install
105114 - name : Build
106115 run : ${{ matrix.settings.build }}
107116 shell : bash
@@ -135,15 +144,19 @@ jobs:
135144 - ' 22'
136145 runs-on : ${{ matrix.settings.host }}
137146 steps :
138- - uses : actions/checkout@v6
147+ - uses : actions/checkout@v4
148+ - name : Install pnpm
149+ uses : pnpm/action-setup@v4
150+ with :
151+ version : 9
139152 - name : Setup node
140- uses : actions/setup-node@v6
153+ uses : actions/setup-node@v4
141154 with :
142155 node-version : ${{ matrix.node }}
143- cache : yarn
156+ cache : pnpm
144157 architecture : ${{ matrix.settings.architecture }}
145158 - name : Install dependencies
146- run : yarn install
159+ run : pnpm install
147160 - name : Download artifacts
148161 uses : actions/download-artifact@v6
149162 with :
@@ -153,7 +166,7 @@ jobs:
153166 run : ls -R .
154167 shell : bash
155168 - name : Test bindings
156- run : yarn test
169+ run : pnpm test
157170 test-linux-binding :
158171 name : Test ${{ matrix.target }} - node@${{ matrix.node }}
159172 needs :
@@ -168,12 +181,16 @@ jobs:
168181 - ' 22'
169182 runs-on : ${{ contains(matrix.target, 'aarch64') && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
170183 steps :
171- - uses : actions/checkout@v6
184+ - uses : actions/checkout@v4
185+ - name : Install pnpm
186+ uses : pnpm/action-setup@v4
187+ with :
188+ version : 9
172189 - name : Setup node
173- uses : actions/setup-node@v6
190+ uses : actions/setup-node@v4
174191 with :
175192 node-version : ${{ matrix.node }}
176- cache : yarn
193+ cache : pnpm
177194 - name : Output docker params
178195 id : docker
179196 run : |
@@ -195,9 +212,9 @@ jobs:
195212 " >> $GITHUB_OUTPUT
196213 - name : Install dependencies
197214 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
215+ pnpm config set supportedArchitectures.cpu "[\ "current\ ", \ "arm64\ ", \ "x64\ ", \ "arm\"]" --json
216+ pnpm config set supportedArchitectures.libc "[\ "current\ ", \ "musl\ ", \ "gnu\"]" --json
217+ pnpm install
201218 - name : Download artifacts
202219 uses : actions/download-artifact@v6
203220 with :
@@ -218,7 +235,7 @@ jobs:
218235 with :
219236 image : ${{ steps.docker.outputs.IMAGE }}
220237 options : ' -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
221- run : yarn test
238+ run : corepack enable && pnpm test
222239 publish :
223240 name : Publish
224241 runs-on : ubuntu-latest
@@ -230,22 +247,26 @@ jobs:
230247 - test-macOS-windows-binding
231248 - test-linux-binding
232249 steps :
233- - uses : actions/checkout@v6
250+ - uses : actions/checkout@v4
251+ - name : Install pnpm
252+ uses : pnpm/action-setup@v4
253+ with :
254+ version : 9
234255 - name : Setup node
235- uses : actions/setup-node@v6
256+ uses : actions/setup-node@v4
236257 with :
237- node-version : 24
238- cache : yarn
258+ node-version : ${{ env.NODE_VERSION }}
259+ cache : pnpm
239260 - name : Install dependencies
240- run : yarn install
261+ run : pnpm install
241262 - name : create npm dirs
242- run : yarn napi create-npm-dirs
263+ run : pnpm napi create-npm-dirs
243264 - name : Download all artifacts
244- uses : actions/download-artifact@v6
265+ uses : actions/download-artifact@v4 # v4 is standard, v6 is user specific maybe? keeping consistent with other edits
245266 with :
246267 path : artifacts
247268 - name : Move artifacts
248- run : yarn artifacts
269+ run : pnpm artifacts
249270 - name : List packages
250271 run : ls -R ./npm
251272 shell : bash
0 commit comments