diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index cc77f42..5b7d296 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - id-token: write # required for npm OIDC trusted publishing + id-token: write steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 @@ -23,9 +23,7 @@ jobs: - run: bun install --frozen-lockfile - run: bun run test - run: bun run build - - name: Publish to npm - # bun publish has no OIDC support yet, so publish with npm. - # No token: auth comes from the trusted publisher configured on npm. + - name: Stage release to npm run: | npm install -g npm@latest - npm publish --provenance --access public + npm stage publish