Merge pull request #6300 from continuedev/nate/ci-abc
build.sh and build.ps1 to build packages in CI
This commit is contained in:
commit
7cf3fa507f
5 changed files with 36 additions and 2 deletions
8
.github/workflows/main.yaml
vendored
8
.github/workflows/main.yaml
vendored
|
|
@ -104,6 +104,14 @@ jobs:
|
|||
path: gui/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
|
||||
|
||||
- name: Build packages (Windows)
|
||||
run: build.ps1
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
||||
- name: Build packages (Unix)
|
||||
run: ./build.sh
|
||||
if: matrix.os != 'windows-latest'
|
||||
|
||||
- name: Install extension Dependencies
|
||||
run: |
|
||||
cd extensions/vscode
|
||||
|
|
|
|||
13
build.ps1
Normal file
13
build.ps1
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Push-Location packages
|
||||
|
||||
Push-Location "openai-adapters"
|
||||
npm ci
|
||||
npm run build
|
||||
Pop-Location
|
||||
|
||||
Push-Location "config-yaml"
|
||||
npm ci
|
||||
npm run build
|
||||
Pop-Location
|
||||
|
||||
Pop-Location
|
||||
13
build.sh
Normal file
13
build.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Build @continuedev packages for monorepo style linking
|
||||
|
||||
cd packages
|
||||
cd openai-adapters
|
||||
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
cd ..
|
||||
cd config-yaml
|
||||
|
||||
npm ci
|
||||
npm run build
|
||||
2
core/package-lock.json
generated
2
core/package-lock.json
generated
|
|
@ -16,7 +16,7 @@
|
|||
"@continuedev/config-yaml": "file:../packages/config-yaml",
|
||||
"@continuedev/fetch": "^1.0.14",
|
||||
"@continuedev/llm-info": "^1.0.8",
|
||||
"@continuedev/openai-adapters": "1.0.42",
|
||||
"@continuedev/openai-adapters": "file:../packages/openai-adapters",
|
||||
"@modelcontextprotocol/sdk": "^1.12.0",
|
||||
"@mozilla/readability": "^0.5.0",
|
||||
"@octokit/rest": "^20.1.1",
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
"@continuedev/config-yaml": "file:../packages/config-yaml",
|
||||
"@continuedev/fetch": "^1.0.14",
|
||||
"@continuedev/llm-info": "^1.0.8",
|
||||
"@continuedev/openai-adapters": "1.0.42",
|
||||
"@continuedev/openai-adapters": "file:../packages/openai-adapters",
|
||||
"@modelcontextprotocol/sdk": "^1.12.0",
|
||||
"@mozilla/readability": "^0.5.0",
|
||||
"@octokit/rest": "^20.1.1",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue