Skip to content

[STG-1730] ci: fix release workflow for trusted publishing#167

Merged
shrey150 merged 4 commits intomainfrom
fix-release-workflow
Mar 31, 2026
Merged

[STG-1730] ci: fix release workflow for trusted publishing#167
shrey150 merged 4 commits intomainfrom
fix-release-workflow

Conversation

@shrey150
Copy link
Copy Markdown
Contributor

Summary

  • Upgrade actions/setup-node from v4 to v6 for better OIDC support
  • Add npm install -g npm@latest step before publish (ensures npm supports trusted publishing)
  • Remove NPM_CONFIG_PROVENANCE: true env var (not needed with OIDC)

Aligns with the pattern that works in stagehand and openclaw-browserbase repos.

Linear: https://linear.app/browserbase/issue/STG-1730/stg-fix-release-workflow-for-trusted-publishing

🤖 Generated with Claude Code

shrey150 and others added 4 commits March 30, 2026 17:56
- Upgrade setup-node from v4 to v6 for better OIDC support
- Add npm upgrade step for trusted publishing compatibility
- Remove NPM_CONFIG_PROVENANCE env var (not needed with OIDC)

Matches the pattern used in stagehand and openclaw-browserbase repos.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- checkout@v4 → v6 with fetch-depth: 0 (changesets needs git history)
- Keep NPM_CONFIG_PROVENANCE=true (only way to pass --provenance through changesets)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Stagehand publishes successfully via changesets + OIDC without this
env var. Removing it to eliminate the one difference between the
two workflows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shrey150 shrey150 merged commit 4a18b26 into main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants