Skip to content
Open
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
11 changes: 8 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ jobs:
- uses: hemilabs/actions/setup-node-env@8f87619b7f0122c39e14a32514ab3e4e0d4c3966 # v2.3.0
with:
package-manager: ${{ inputs.package-manager }}
# The below commands can be run with either npm or pnpm, as both support the same CLI
- run: npm run --if-present prepublishOnly
# Provenance is enabled by default in trusted publishing
# See https://docs.npmjs.com/trusted-publishers#supported-cicd-providers
- run: npm publish --access public
- if: inputs.package-manager == 'npm'
run: |
npm run --if-present prepublishOnly
npm publish --access public
- if: inputs.package-manager == 'pnpm'
run: |
pnpm run --if-present prepublishOnly
pnpm publish --access public