Files
jrx/.github/workflows/publish.yml
Kenneth d2174260c1 Use bunx npm publish for trusted publishing
bun publish does not pick up the OIDC token for npm trusted publishing.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-14 01:18:26 +00:00

27 lines
454 B
YAML

name: Publish to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run build
- run: bun test
- run: bunx npm publish --provenance --access public
env:
NPM_CONFIG_REGISTRY: https://registry.npmjs.org