Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
cache: pnpm
registry-url: https://registry.npmjs.org

# Node 22 ships npm 10.x; npm trusted publishing (OIDC) requires >= 11.5.1.
- name: Upgrade npm for trusted publishing (OIDC)
run: npm install -g npm@latest

- name: Configure git for tests
run: |
git config --global user.name "CI"
Expand Down Expand Up @@ -71,9 +75,10 @@ jobs:
title: 'chore(release): version packages'
createGithubReleases: true
env:
# npm auth is via OIDC trusted publishing (id-token: write above) — no NPM_TOKEN.
# Each package must have a trusted publisher configured on npmjs.com:
# org=Contentrain, repo=ai, workflow=release.yml
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to MCP Registry
if: steps.changesets.outputs.published == 'true' && contains(steps.changesets.outputs.publishedPackages, '@contentrain/mcp')
Expand Down
Loading