@@ -356,36 +356,20 @@ jobs:
356356 ports :
357357 - 33306:3306
358358 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-
359+ - uses : actions/checkout@v5
360+ - uses : pnpm/action-setup@v4
361+ with : { run_install: false }
362+ - uses : actions/setup-node@v6
363+ with : { node-version: '24', cache: 'pnpm', cache-dependency-path: pnpm-lock.yaml }
364+ - run : pnpm install --frozen-lockfile --prefer-offline
386365
387- - name : Install dependencies
388- run : pnpm install
366+ # nuke, so npm can use OIDC
367+ - name : Remove temp npmrc
368+ run : rm -f "$NPM_CONFIG_USERCONFIG"
369+
370+ # >= 11.5.1 for trusted publishing
371+ - name : Update NPM
372+ run : npm install -g npm@latest
389373
390374 - name : Check preconditions
391375 id : checks
@@ -398,7 +382,6 @@ jobs:
398382
399383 if [[ "$is_version_published" == "true" ]]; then
400384 echo "\`${{ matrix.package }}@$version\` already published, adding tag \`latest\`" >> $GITHUB_STEP_SUMMARY
401- npm dist-tag add ${{ matrix.package }}@$version latest
402385 elif [[ "$latest" != "$version" ]]; then
403386 echo "Latest: $latest"
404387 echo "Current: $version"
@@ -441,10 +424,6 @@ jobs:
441424 if : steps.checks.outputs.has_new_release == 'true'
442425 working-directory : ${{ matrix.package }}
443426 shell : bash
444- # force empty so npm can use OIDC
445- env :
446- NODE_AUTH_TOKEN : " "
447- NPM_TOKEN : " "
448427 run : |
449428 version="${{ steps.checks.outputs.version }}"
450429
0 commit comments