feat: web build for neuropilot #8
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: Build extension | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| paths-ignore: | |
| - ".github/" | |
| - ".vscode/" | |
| - ".husky/" | |
| - "playground/" | |
| - "docs/" | |
| - "tony/" | |
| pull_request: | |
| paths-ignore: | |
| - ".github/" | |
| - ".vscode/" | |
| - ".husky/" | |
| - "playground/" | |
| - "docs/" | |
| - "tony/" | |
| jobs: | |
| build: | |
| name: Build extension | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.sha }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4.4.0 | |
| with: | |
| node-version: 22.x.x | |
| cache: 'npm' | |
| cache-dependency-path: './package-lock.json' | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules/ | |
| key: neuropilot-build | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Package extension | |
| env: | |
| NODE_ENV: 0 | |
| run: npx @vscode/vsce package --allow-star-activation # how do I make this build non-prod too :( | |
| - name: Upload builds | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: neuropilot-*.vsix | |
| name: NeuroPilot (Non-Production) Build ${{ github.sha }} |