diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 991fb23cd9..4e50178c4a 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -8,14 +8,35 @@ on: - master jobs: - demos: - name: Run Demos and Validate + build: + name: Build runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master - name: Install Dependencies run: npm ci + - name: Build + run: npm run build + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: build + path: build + demos: + name: Run Demos and Validate + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Download Artifact + uses: actions/download-artifact@master + with: + name: build + path: build - name: Run Demo run: npm run ts-node -- ./demo/1-basic.ts - name: Extract Word Document