Skip to content

Update dependency vite to v4.4.8 #1234

Update dependency vite to v4.4.8

Update dependency vite to v4.4.8 #1234

Workflow file for this run

name: 'Chromatic'
# Event for the workflow
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
sha:
description: The SHA-1 hash referring to the commit to check.
required: true
ref:
description: The head branch associated with the pull request.
required: true
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ci-${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# To use Turborepo Remote Caching, set the following environment variables for the job.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}
# Job steps
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
- uses: pnpm/[email protected]
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build storybook
run: pnpm run build-storybook
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# exit once uploaded, (use less github actions ci time)
exitOnceUploaded: true
# prebuilt build dir
storybookBuildDir: "docs/storybook-static"