Publishing to npm
First publish (local — required once)
contexai must be created interactively once. CI cannot bootstrap a brand-new package name via OIDC.
bash
npm login
npm run build
npm publish --access publicThen on npmjs.com → package contexai → Trusted Publisher → GitHub Actions
(gonmedtara / Contexai / publish.yml). Delete NPM_TOKEN from GitHub secrets.
Full detail: docs/publishing.md.
Later releases (GitHub Actions)
- Actions → Publish npm → Run workflow
- Pick
patch/minor/major
Smoke test
bash
mkdir /tmp/contexai-smoke && cd /tmp/contexai-smoke
npm init -y
npm install contexai
npx contexai --no-open