Skip to content

chore: update OpenAPI workflows and fix npm publishing#8

Merged
nastassiafulconis merged 3 commits into
mainfrom
openapi-auto-pr
Nov 6, 2025
Merged

chore: update OpenAPI workflows and fix npm publishing#8
nastassiafulconis merged 3 commits into
mainfrom
openapi-auto-pr

Conversation

@nastassiafulconis
Copy link
Copy Markdown
Collaborator

Summary

Fixed the auto-update OpenAPI workflow to create PRs instead of pushing directly to main, and updated to fetch from the correct OpenAPI specs. Also fixed the release workflow to use npm Trusted Publishing with OIDC.

Changes

  • Auto-update workflow:

    • Now creates PRs instead of pushing directly to main (fixes branch protection violations)
    • Updated to fetch from agentic-api repo instead of docs site
    • Switched from media-agent-openapi.yaml to outcome-agent-openapi.yaml
    • Added partner-api.yaml and platform-api.yaml specs
  • Release workflow:

    • Configured for npm Trusted Publishing using OIDC
    • Added id-token: write permission for OIDC authentication
    • Removed NPM_TOKEN dependencies (now using Trusted Publishing)
  • Package.json:

    • Updated OpenAPI generation scripts to match new spec files
    • Changed URLs to point to GitHub raw content from agentic-api repo

Testing

  • ✅ Type-check passes
  • ✅ Build passes
  • ✅ Tests pass (2 test suites, 9 tests)

TODO

Notes

The auto-update workflow will now automatically create PRs when OpenAPI specs change, respecting branch protection rules.

nastassiafulconis and others added 2 commits November 6, 2025 08:03
- Update auto-update workflow to fetch from agentic-api repo
- Switch from media-agent to outcome-agent OpenAPI spec
- Add partner-api and platform-api specs
- Configure workflow to create PRs instead of direct push
- Fix release workflow to use Trusted Publishing with OIDC
- Remove NPM_TOKEN dependencies in favor of Trusted Publishing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@nastassiafulconis nastassiafulconis requested a review from a team November 6, 2025 16:05
EmmaLouise2018
EmmaLouise2018 previously approved these changes Nov 6, 2025
@nastassiafulconis nastassiafulconis merged commit a23aa64 into main Nov 6, 2025
6 checks passed
@nastassiafulconis nastassiafulconis deleted the openapi-auto-pr branch November 6, 2025 16:13
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