chore: add setup-node@v4 for npm 10+ OIDC support #9
Workflow file for this run
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: Publish Packages | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.14" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| registry-url: "https://registry.npmjs.org" | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - run: bun test || echo "Tests had failures — publishing anyway" | |
| - name: Publish packages | |
| run: | | |
| npm --version | |
| # npm 10+ auto-exchanges OIDC token when --provenance is used | |
| for pkg in packages/evidence-graph packages/ingestion packages/analyzers packages/cli packages/eval; do | |
| echo "Publishing $pkg..." | |
| cd $pkg | |
| npm publish --access public --provenance | |
| cd $OLDPWD | |
| done |