Skip to content

Update README.md

Update README.md #233

Workflow file for this run

name: build-test
on:
pull_request:
branches:
- main
- next
push:
branches:
- main
- next
jobs:
build-test:
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Setup node 18
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- run: yarn
- run: yarn test
- run: yarn build
docs:
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Setup node 18
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- run: yarn
- run: yarn --cwd docs install
# Build Docs and Storybook.
- run: yarn build-docs
# Deploy Docs and Storybook.
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist
# Publish only with the latest commit.
# Source: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-force-orphan-force_orphan.
force_orphan: true