Files
claude-engineering-plugin/.github/workflows/publish.yml
Kieran Klaassen a32aceec87 Update publish.yml to actions/checkout@v6 to match #167
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 10:27:24 -08:00

38 lines
749 B
YAML

name: Publish to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test
- name: Setup Node.js for npm publish
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}