This repository was archived by the owner on May 13, 2026. It is now read-only.
chore: upgrade npm to latest for OIDC trusted publishing support #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version 🔖 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| version: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| environment: production | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Upgrade npm for trusted publishing support | |
| run: npm install -g npm@latest | |
| - name: Clear stale auth token for OIDC | |
| run: npm config delete '//registry.npmjs.org/:_authToken' || true | |
| - name: Publish with provenance | |
| run: npm publish --access public --provenance | |
| - name: Deprecate | |
| run: npm deprecate base-mcp "This package has been deprecated. See https://docs.base.org/ai-agents for the new Base AI Agents docs." |