Skip to content

Commit 0dfed1b

Browse files
authored
Merge pull request #5035 from drizzle-team/kit-checks
Fix release-latest
2 parents c314c8d + b6a6aac commit 0dfed1b

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

.github/workflows/release-latest.yaml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ jobs:
303303
- drizzle-arktype
304304
- eslint-plugin-drizzle
305305
runs-on: ubuntu-22.04
306+
# force empty so npm can use OIDC
307+
env:
308+
NODE_AUTH_TOKEN: ""
309+
NPM_TOKEN: ""
306310
services:
307311
postgres-postgis:
308312
image: postgis/postgis:16-3.4
@@ -356,36 +360,20 @@ jobs:
356360
ports:
357361
- 33306:3306
358362
steps:
359-
- uses: actions/checkout@v4
360-
361-
- uses: actions/setup-node@v4
362-
with:
363-
node-version: '22'
364-
registry-url: 'https://registry.npmjs.org'
365-
366-
- uses: pnpm/action-setup@v3
367-
name: Install pnpm
368-
id: pnpm-install
369-
with:
370-
version: latest
371-
run_install: false
372-
373-
- name: Get pnpm store directory
374-
id: pnpm-cache
375-
shell: bash
376-
run: |
377-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
378-
379-
- uses: actions/cache@v4
380-
name: Setup pnpm cache
381-
with:
382-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
383-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
384-
restore-keys: |
385-
${{ runner.os }}-pnpm-store-
363+
- uses: actions/checkout@v5
364+
- uses: pnpm/action-setup@v4
365+
with: { run_install: false }
366+
- uses: actions/setup-node@v6
367+
with: { node-version: '24', cache: 'pnpm', cache-dependency-path: pnpm-lock.yaml }
368+
- run: pnpm install --frozen-lockfile --prefer-offline
386369

387-
- name: Install dependencies
388-
run: pnpm install
370+
# nuke, so npm can use OIDC
371+
- name: Remove temp npmrc
372+
run: rm -f "$NPM_CONFIG_USERCONFIG"
373+
374+
# >= 11.5.1 for trusted publishing
375+
- name: Update NPM
376+
run: npm install -g npm@latest
389377

390378
- name: Check preconditions
391379
id: checks
@@ -398,7 +386,6 @@ jobs:
398386
399387
if [[ "$is_version_published" == "true" ]]; then
400388
echo "\`${{ matrix.package }}@$version\` already published, adding tag \`latest\`" >> $GITHUB_STEP_SUMMARY
401-
npm dist-tag add ${{ matrix.package }}@$version latest
402389
elif [[ "$latest" != "$version" ]]; then
403390
echo "Latest: $latest"
404391
echo "Current: $version"
@@ -441,10 +428,6 @@ jobs:
441428
if: steps.checks.outputs.has_new_release == 'true'
442429
working-directory: ${{ matrix.package }}
443430
shell: bash
444-
# force empty so npm can use OIDC
445-
env:
446-
NODE_AUTH_TOKEN: ""
447-
NPM_TOKEN: ""
448431
run: |
449432
version="${{ steps.checks.outputs.version }}"
450433

0 commit comments

Comments
 (0)