Skip to content

Commit 6f12d45

Browse files
fix npm release
1 parent c3ecf62 commit 6f12d45

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,11 @@ jobs:
395395
if: steps.checks.outputs.has_new_release == 'true'
396396
working-directory: ${{ matrix.package }}
397397
shell: bash
398-
env:
399-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
400398
run: npm run pack
401399

400+
# nuke, so npm can use OIDC
401+
- name: Remove temp npmrc
402+
run: rm -f "$NPM_CONFIG_USERCONFIG"
402403
- name: Publish
403404
if: github.event_name == 'push' && steps.checks.outputs.has_new_release == 'true'
404405
run: |
@@ -414,5 +415,7 @@ jobs:
414415
# 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 }}
415416
working-directory: ${{ matrix.package }}
416417
shell: bash
418+
# force empty so npm can use OIDC
417419
env:
418-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
420+
NODE_AUTH_TOKEN: ""
421+
NPM_TOKEN: ""

0 commit comments

Comments
 (0)