Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
loglevel:
description: 'npm loglevel for the publish step — "verbose" shows the OIDC exchange'
default: notice
type: choice
options: [notice, verbose, silly]

permissions:
contents: read
Expand Down Expand Up @@ -109,7 +115,11 @@ jobs:
# Provenance is automatic under trusted publishing, but --provenance is
# kept explicit so the run fails loudly rather than silently publishing
# an unattested tarball if the exchange ever stops happening.
# LOGLEVEL goes through env, never `${{ }}` inside the script body.
# `release` events supply no inputs, hence the fallback.
env:
LOGLEVEL: ${{ inputs.loglevel || 'notice' }}
run: |
npm install -g npm@latest
npm --version
npm publish --provenance --access public
npm publish --provenance --access public --loglevel "$LOGLEVEL"
Loading