44 APP_NAME : simple-git
55 MACOSX_DEPLOYMENT_TARGET : ' 10.13'
66 CARGO_INCREMENTAL : ' 1'
7- permissions :
8- contents : write
9- id-token : write
107" on " :
118 push :
129 branches :
2825 name : Lint
2926 runs-on : ubuntu-latest
3027 steps :
31- - uses : actions/checkout@v4
28+ - uses : actions/checkout@v5
3229
3330 - name : Setup node
3431 uses : actions/setup-node@v4
@@ -107,7 +104,7 @@ jobs:
107104 name : stable - ${{ matrix.settings.target }} - node@22
108105 runs-on : ${{ matrix.settings.host }}
109106 steps :
110- - uses : actions/checkout@v4
107+ - uses : actions/checkout@v5
111108 - name : Setup node
112109 uses : actions/setup-node@v4
113110 with :
@@ -165,7 +162,7 @@ jobs:
165162 runs-on : ubuntu-latest
166163 name : Build FreeBSD
167164 steps :
168- - uses : actions/checkout@v4
165+ - uses : actions/checkout@v5
169166 - name : Build
170167 id : build
171168 uses :
cross-platform-actions/[email protected] @@ -174,7 +171,7 @@ jobs:
174171 RUSTUP_IO_THREADS : 1
175172 with :
176173 operating_system : freebsd
177- version : ' 14.2 '
174+ version : ' 14.3 '
178175 memory : 8G
179176 cpu_count : 3
180177 environment_variables : ' DEBUG RUSTUP_IO_THREADS'
@@ -230,7 +227,7 @@ jobs:
230227 - " 22"
231228 runs-on : ${{ matrix.settings.host }}
232229 steps :
233- - uses : actions/checkout@v4
230+ - uses : actions/checkout@v5
234231 with :
235232 fetch-depth : 0
236233 - name : Setup node
@@ -263,14 +260,13 @@ jobs:
263260 - " 22"
264261 runs-on : ubuntu-latest
265262 steps :
266- - uses : actions/checkout@v4
263+ - uses : actions/checkout@v5
267264 with :
268265 fetch-depth : 0
269266 - name : Setup node
270267 uses : actions/setup-node@v4
271268 with :
272269 node-version : ${{ matrix.node }}
273- check-latest : true
274270 cache : yarn
275271 - name : Install dependencies
276272 run : yarn install --mode=skip-build --immutable
@@ -287,13 +283,16 @@ jobs:
287283 publish :
288284 name : Publish
289285 runs-on : ubuntu-latest
286+ permissions :
287+ contents : write
288+ id-token : write
290289 needs :
291290 - lint
292291 - build-freebsd
293292 - test-macOS-windows-binding
294293 - test-linux-x64-gnu-binding
295294 steps :
296- - uses : actions/checkout@v4
295+ - uses : actions/checkout@v5
297296 - name : Setup node
298297 uses : actions/setup-node@v4
299298 with :
@@ -314,18 +313,15 @@ jobs:
314313 shell : bash
315314 - name : Publish
316315 run : |
317- npm config set provenance true
316+ npm install -g npm
318317 if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
319318 then
320- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
321319 npm publish --access public
322320 elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
323321 then
324- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
325322 npm publish --tag next --access public
326323 else
327324 echo "Not a release, skipping publish"
328325 fi
329326 env :
330327 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
331- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments