summaryrefslogtreecommitdiff
path: root/extension/workflows/main.yml
blob: 95dc2465cc80babe36e7cffbb36c130e8e0bf3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# GitHub Actions Workflow to compile the extension and `npm run package`

name: Build

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 19.0.0
      - run: npm ci
      - run: npm run clientgen
      - run: npm run compile
      - run: cd react-app && npm install && npm run build
      - run: npm run package
      - name: Save build as artifact
        uses: actions/upload-artifact@v3
        with:
          name: packaged-extension
          path: build/*.vsix