Fixed Chip #206
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
name: Deploy PR previews | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
push: | |
branches-ignore: | |
- main | |
concurrency: preview-${{ github.ref }} | |
jobs: | |
publish-preview: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install and Build | |
run: | | |
yarn set version berry | |
yarn config set -H enableImmutableInstalls false | |
yarn | |
yarn run build | |
yarn run build:styleguide | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./styleguide/styleguide |