Skip to content

Commit

Permalink
ci: build and check workflow (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
  • Loading branch information
nehagup authored Sep 18, 2023
1 parent a752651 commit 24ec1ae
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/build_and_check.yml
Original file line number Diff line number Diff line change
@@ -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

- name: Install Dependencies
run: yarn install

- name: Build Documentation
run: yarn build

0 comments on commit 24ec1ae

Please sign in to comment.