-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
- Loading branch information
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |