Skip to content

Commit c66862c

Browse files
Merge pull request #5036 from drizzle-team/kit-checks
Fix release-latest
2 parents 0dfed1b + 391d33b commit c66862c

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

.github/workflows/release-feature-branch.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,15 @@ jobs:
340340
- uses: actions/setup-node@v6
341341
with: { node-version: '24', cache: 'pnpm', cache-dependency-path: pnpm-lock.yaml }
342342
- run: pnpm install --frozen-lockfile --prefer-offline
343-
344-
# nuke, so npm can use OIDC
345-
- name: Remove temp npmrc
346-
run: rm -f "$NPM_CONFIG_USERCONFIG"
347343

348344
# >= 11.5.1 for trusted publishing
349345
- name: Update NPM
350346
run: npm install -g npm@latest
351347

348+
# nuke, so npm can use OIDC
349+
- name: Remove temp npmrc
350+
run: rm -f "$NPM_CONFIG_USERCONFIG"
351+
352352
- name: Check preconditions
353353
id: checks
354354
shell: bash
@@ -384,9 +384,6 @@ jobs:
384384
shell: bash
385385
run: npm run pack
386386

387-
# nuke, so npm can use OIDC
388-
- name: Remove temp npmrc
389-
run: rm -f "$NPM_CONFIG_USERCONFIG"
390387
- name: Publish
391388
if: github.event_name == 'push' && steps.checks.outputs.has_new_release == 'true'
392389
run: |

.github/workflows/release-latest.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ jobs:
286286
run: bunx attw package.tgz
287287

288288
release:
289-
permissions: write-all
289+
permissions:
290+
contents: read
291+
id-token: write
290292
needs:
291293
- test
292294
- attw
@@ -305,7 +307,7 @@ jobs:
305307
runs-on: ubuntu-22.04
306308
# force empty so npm can use OIDC
307309
env:
308-
NODE_AUTH_TOKEN: ""
310+
NODE_AUTH_TOKEN: ""
309311
NPM_TOKEN: ""
310312
services:
311313
postgres-postgis:
@@ -366,15 +368,15 @@ jobs:
366368
- uses: actions/setup-node@v6
367369
with: { node-version: '24', cache: 'pnpm', cache-dependency-path: pnpm-lock.yaml }
368370
- run: pnpm install --frozen-lockfile --prefer-offline
369-
370-
# nuke, so npm can use OIDC
371-
- name: Remove temp npmrc
372-
run: rm -f "$NPM_CONFIG_USERCONFIG"
373371

374372
# >= 11.5.1 for trusted publishing
375373
- name: Update NPM
376374
run: npm install -g npm@latest
377375

376+
# nuke, so npm can use OIDC
377+
- name: Remove temp npmrc
378+
run: rm -f "$NPM_CONFIG_USERCONFIG"
379+
378380
- name: Check preconditions
379381
id: checks
380382
shell: bash
@@ -421,9 +423,6 @@ jobs:
421423
shell: bash
422424
run: npm run pack
423425

424-
# nuke, so npm can use OIDC
425-
- name: Remove temp npmrc
426-
run: rm -f "$NPM_CONFIG_USERCONFIG"
427426
- name: Publish
428427
if: steps.checks.outputs.has_new_release == 'true'
429428
working-directory: ${{ matrix.package }}

0 commit comments

Comments
 (0)