fix: wire npm auth into release publish

This commit is contained in:
Affaan Mustafa
2026-04-14 20:43:22 -07:00
parent 34380326c8
commit b5c4d2beb9
3 changed files with 8 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ jobs:
- name: Publish npm package
if: steps.npm_publish_state.outputs.already_published != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
- name: Generate release highlights

View File

@@ -12,6 +12,9 @@ on:
required: false
type: boolean
default: true
secrets:
NPM_TOKEN:
required: false
permissions:
contents: write
@@ -77,6 +80,8 @@ jobs:
- name: Publish npm package
if: steps.npm_publish_state.outputs.already_published != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
- name: Generate release highlights