Skip to content

v2.0.2

v2.0.2 #77

Workflow file for this run

name: Deploy Docs (Stable)
on:
release:
types:
- 'released'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install node_modules
run: yarn install --immutable
env:
CYPRESS_INSTALL_BINARY: 0
- name: Get Major Version
run: |
MAJOR_VERSION=$(node -p -e "/^(\d+)\./.exec(require('./lerna.json').version)[1]")
echo "MAJOR_VERSION=${MAJOR_VERSION}" >> "$GITHUB_ENV"
- name: Build Storybook
run: |
yarn build:storybook
yarn build:storybook-sitemap --basePath "v${{ env.MAJOR_VERSION }}"
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4.6.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: .out # The folder the action should deploy.
target-folder: v${{ env.MAJOR_VERSION }}
clean: true