Version Packages (#88) #71
Workflow file for this run
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: Doc | |
on: | |
push: | |
tags: | |
- "**" | |
jobs: | |
docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
.yarn/cache | |
node_modules | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('./yarn.lock') }} | |
- name: Setup Node.js 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.17.1" | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Build Docs | |
run: yarn build && yarn docs | |
- name: Deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npx gh-pages --dist storybook-static --dest . -u "github-actions-bot <[email protected]>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |