diff --git a/.github/workflows/build_and_check.yml b/.github/workflows/build_and_check.yml index 28b95000b..acd504026 100644 --- a/.github/workflows/build_and_check.yml +++ b/.github/workflows/build_and_check.yml @@ -1,27 +1,30 @@ -# .github/workflows/preview.yml -name: Deploy PR previews -concurrency: preview-${{ github.ref }} +name: Deploy PR Build and Check + on: pull_request: types: - opened - - reopened - synchronize - closed + jobs: deploy-preview: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 # Choose the Node.js version that matches your project's requirements. + - name: Install Yarn run: npm install -g yarn - - name: Install dependencies - run: yarn - - name: Build lib - run: | - yarn build - - uses: rossjrw/pr-preview-action@v1 - with: - source-dir: build - preview-branch: main - umbrella-dir: docs/pr-preview \ No newline at end of file + + - name: Install Dependencies + run: yarn install + + - name: Build Documentation + run: yarn build