Skip to content

Commit 98ab19f

Browse files
committed
+
1 parent 6f12d45 commit 98ab19f

File tree

1 file changed

+15
-33
lines changed

1 file changed

+15
-33
lines changed

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

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -329,37 +329,24 @@ jobs:
329329
permissions:
330330
contents: read
331331
id-token: write
332+
# force empty so npm can use OIDC
333+
env:
334+
NODE_AUTH_TOKEN: ""
335+
NPM_TOKEN: ""
332336
steps:
333337
- uses: actions/checkout@v4
334338

335-
- uses: actions/setup-node@v4
336-
with:
337-
node-version: '22'
338-
registry-url: 'https://registry.npmjs.org'
339-
340-
- uses: pnpm/action-setup@v3
341-
name: Install pnpm
342-
id: pnpm-install
343-
with:
344-
version: latest
345-
run_install: false
346-
347-
- name: Get pnpm store directory
348-
id: pnpm-cache
349-
shell: bash
350-
run: |
351-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
339+
- uses: actions/setup-node@v6
340+
with: { node-version: '24', cache: 'pnpm', cache-dependency-path: pnpm-lock.yaml }
341+
- run: pnpm install --frozen-lockfile --prefer-offline
352342

353-
- uses: actions/cache@v4
354-
name: Setup pnpm cache
355-
with:
356-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
357-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
358-
restore-keys: |
359-
${{ runner.os }}-pnpm-store-
360-
361-
- name: Install dependencies
362-
run: pnpm install
343+
# nuke, so npm can use OIDC
344+
- name: Remove temp npmrc
345+
run: rm -f "$NPM_CONFIG_USERCONFIG"
346+
347+
# >= 11.5.1 for trusted publishing
348+
- name: Update NPM
349+
run: npm install -g npm@latest
363350

364351
- name: Check preconditions
365352
id: checks
@@ -374,7 +361,6 @@ jobs:
374361
375362
if [[ "$is_version_published" == "true" ]]; then
376363
echo "\`${{ matrix.package }}$version\` already published, adding tag \`$tag\`" >> $GITHUB_STEP_SUMMARY
377-
npm dist-tag add ${{ matrix.package }}@$version $tag
378364
else
379365
{
380366
echo "version=$version"
@@ -414,8 +400,4 @@ jobs:
414400
# Post release message to Discord
415401
# curl -X POST -H "Content-Type: application/json" -d "{\"embeds\": [{\"title\": \"New \`${{ matrix.package }}\` release! 🎉\", \"url\": \"https://www.npmjs.com/package/${{ matrix.package }}/v/$version\", \"color\": \"12907856\", \"fields\": [{\"name\": \"Version\", \"value\": \"\`$version\`\"}, {\"name\": \"Tag\", \"value\": \"\`$tag\`\"}]}]}" ${{ secrets.DISCORD_DEV_RELEASE_WEBHOOK_URL }}
416402
working-directory: ${{ matrix.package }}
417-
shell: bash
418-
# force empty so npm can use OIDC
419-
env:
420-
NODE_AUTH_TOKEN: ""
421-
NPM_TOKEN: ""
403+
shell: bash

0 commit comments

Comments
 (0)