Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
yml 68 lines 1.85 KB
Raw
1 name: Build Typescript SDK
2
3 on:
4 push:
5 branches: [next, main]
6 paths:
7 - 'ts/**'
8 - '.oxlintrc.json'
9 - '.github/actions/setup-node-pnpm-bun/action.yml'
10 - '.github/workflows/ts.build.yml'
11 - 'mise.toml'
12 - 'mise.lock'
13 - 'turbo.jsonc'
14 - 'package.json'
15 - 'pnpm-lock.yaml'
16 - 'pnpm-workspace.yaml'
17 - 'tsdown.config.base.ts'
18 pull_request:
19 paths:
20 - 'ts/**'
21 - '.oxlintrc.json'
22 - '.github/actions/setup-node-pnpm-bun/action.yml'
23 - '.github/workflows/ts.build.yml'
24 - 'mise.toml'
25 - 'mise.lock'
26 - 'turbo.jsonc'
27 - 'package.json'
28 - 'pnpm-lock.yaml'
29 - 'pnpm-workspace.yaml'
30 - 'tsdown.config.base.ts'
31
32 concurrency:
33 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
34 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
35
36 permissions:
37 contents: read
38
39 # Print Turborepo telemetry events to the logs instead of sending them.
40 env:
41 TURBO_TELEMETRY_DEBUG: 1
42
43 jobs:
44 build:
45 name: Build Typescript SDK
46 runs-on: ubuntu-latest
47
48 steps:
49 - name: Checkout Code
50 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
51
52 - name: Setup Node.js, pnpm, Bun
53 uses: ./.github/actions/setup-node-pnpm-bun
54 with:
55 enable-turbo-cache: 'true'
56 # Only push runs on next save caches: PR-scoped caches are invisible
57 # to other branches, so saving them costs post-job time and evicts
58 # reusable default-branch caches from the 10 GB repo quota.
59 cache-save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
60
61 - name: Install Dependencies
62 run: pnpm install --frozen-lockfile
63
64 - name: Run Linting
65 run: pnpm lint
66
67 - name: Run Build
68 run: pnpm run build:packages