Skip to content

Commit e73a4df

Browse files
committed
add build ci for api
1 parent 2c11fbd commit e73a4df

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/builds.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929
permissions: {}
3030

3131
jobs:
32-
build:
32+
extension:
3333
name: Build extension
3434
runs-on: ubuntu-latest
3535
steps:
@@ -62,4 +62,32 @@ jobs:
6262
uses: actions/upload-artifact@v7
6363
with:
6464
path: neuropilot-*.vsix
65-
name: NeuroPilot (Non-Production) Build ${{ github.sha }}
65+
name: NeuroPilot (Non-Production) Build ${{ github.sha }}
66+
api:
67+
name: Build API
68+
runs-on: ubuntu-latest
69+
steps:
70+
- name: Checkout source repository
71+
uses: actions/checkout@v6
72+
with:
73+
ref: ${{ github.sha }}
74+
submodules: true
75+
persist-credentials: false
76+
77+
- name: Setup pnpm
78+
uses: pnpm/action-setup@v6
79+
80+
- name: Setup Node.js
81+
uses: actions/setup-node@v6
82+
with:
83+
node-version-file: ./package.json
84+
cache: 'pnpm'
85+
cache-dependency-path: './pnpm-lock.yaml'
86+
87+
- name: Install dependencies
88+
run: pnpm install --frozen-lockfile
89+
90+
- name: Build API types
91+
env:
92+
NODE_ENV: ${{ inputs.prod || '0' }}
93+
run: cd packages/types && pnpm build

0 commit comments

Comments
 (0)