Skip to content

Commit efc74be

Browse files
committed
Fix release workflow: separate publish step for OIDC compatibility
The changesets/action publish parameter doesn't support npm OIDC. Split publishing into a separate step that runs npx changeset publish with NPM_CONFIG_PROVENANCE=true so npm authenticates via OIDC natively.
1 parent 049dd35 commit efc74be

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,17 @@ jobs:
2828
- run: bun run build
2929

3030
- name: Create release PR or publish
31+
id: changesets
3132
uses: changesets/action@v1
3233
with:
3334
version: bun run version
34-
publish: npx changeset publish --provenance
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Publish to npm
39+
if: steps.changesets.outputs.hasChangesets == 'false'
40+
run: |
41+
npm config set registry https://registry.npmjs.org
42+
npx changeset publish
43+
env:
3744
NPM_CONFIG_PROVENANCE: "true"

0 commit comments

Comments
 (0)