From b098e5a01772ee95ddadf47c48ba4753c536a957 Mon Sep 17 00:00:00 2001 From: Gage Krumbach Date: Mon, 23 Oct 2023 07:48:27 -0500 Subject: [PATCH] add pr preview --- .github/workflows/pull-request.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8b829f9021e..90a53740209 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,9 +1,19 @@ -name: Test Build +name: Deploy PR previews on: pull_request +concurrency: preview-${{ github.ref }} jobs: - build: - runs-on: ubuntu-latest + deploy-preview: + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - run: npm ci - - run: npm run build + - name: Checkout + uses: actions/checkout@v3 + + - name: Install and Build + run: | + npm install + npm run build + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./build/