feat: add AIMLAPI SDK configuration and examples, update package details #1
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 Package | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build SDK | |
| run: npm run build | |
| - name: Verify build output | |
| run: | | |
| ls -la dist/ | |
| test -f dist/aimlapi/index.js && echo "Build successful" | |
| test -f dist/aimlapi/index.d.ts && echo "Types generated" | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Publish to npm | |
| run: npm publish |