Skip to content

fix: harden web SDK npm releases#165

Merged
shuaib-ahmed-vapi merged 3 commits into
mainfrom
fix/harden-web-sdk-release
Jul 7, 2026
Merged

fix: harden web SDK npm releases#165
shuaib-ahmed-vapi merged 3 commits into
mainfrom
fix/harden-web-sdk-release

Conversation

@dhruva-vapi

@dhruva-vapi dhruva-vapi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Linear ticket

https://linear.app/vapi/issue/PRISM-1194/web-sdk-harden-npm-releases-with-oidc-and-human-approval

Fixes PRISM-1194

Value

vapi employees can now release the web SDK without a long-lived npm token. Publishing only succeeds for a version-changing PR merged into protected main, where one approving review is required and no actors can bypass the rule.

We found the gap after the v2.5.3 GitHub release failed npm authentication and never reached the registry.

Small edit since first push: the release workflow no longer checks the release author's identity. Human approval is enforced where SDK code changes, at the protected pull request merge.

Evidence of value

  • The existing v2.5.3 tag passes the new merged-PR and version-change checks.
  • The SDK builds, all 6 tests pass, and the npm package packs successfully.
  • Workflow, shell, and security linting pass with no findings.
  • Release PRs and final publish results now notify the existing production release observability Slack webhook.

API Changes (including webhooks + events)

  • Is this changing the public API?

    • Yes
    • No
  • If yes, is it backward‐compatible?

    • Yes
    • No

Non backward-compatible changes might break customers' agents. Please proceed with care and notify the team.

Testing plan

Merge through the protected main branch, then publish a GitHub Release from a merged version PR. Confirm npm Trusted Publishing succeeds, the expected package version appears on npm, and Slack receives the release result. A failed workflow, missing Slack notification, or an unchanged npm version indicates a regression.

@shuaib-ahmed-vapi shuaib-ahmed-vapi merged commit 8f06c7a into main Jul 7, 2026
@shuaib-ahmed-vapi shuaib-ahmed-vapi deleted the fix/harden-web-sdk-release branch July 7, 2026 19:46
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.

3 participants