Installation and build instructions #20
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: Design | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "components/**/*" | |
- "docs/**/*" | |
- "public/**/*" | |
- ".github/workflows/design.yml" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "components/**/*" | |
- "docs/**/*" | |
- "public/**/*" | |
- ".github/workflows/design.yml" | |
jobs: | |
design: | |
name: Design | |
runs-on: ubuntu-latest | |
steps: | |
- name: VCS Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Install PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Fractal Build | |
run: pnpm run fractal:build | |
- name: Create CNAME | |
run: echo "design.reactive-graph.io" > build/CNAME | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build | |
# destination_dir: docs | |
# keep_files: true |