fix(sdk): add missing ai module and tests for CI build #3
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
| # Maintainer publish flow: | |
| # 1) Local gate: pnpm build && pnpm validate:publish (packed manifests must not contain workspace:*) | |
| # 2) Land P0 packaging changes via PR; CI runs the same validate:publish step. | |
| # 3) Merge the changesets "Version Packages" PR (chore(release)) — this workflow runs validate:publish | |
| # again before changeset publish; npm is not touched if validation fails. | |
| # 4) After publish: smoke test from a clean directory, e.g. npm install @loop-engine/sdk@<version> | |
| name: RC tag release | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| release: | |
| if: contains(github.event.head_commit.message, 'chore(release)') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| registry-url: https://registry.npmjs.org | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - name: Validate packed manifests (no workspace:*) | |
| run: pnpm validate:publish | |
| - run: pnpm release | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true |