Skip to content

ditch circleci, switch yarn to pnpm, and update husky #1247

ditch circleci, switch yarn to pnpm, and update husky

ditch circleci, switch yarn to pnpm, and update husky #1247

Workflow file for this run

# .github/workflows/chromatic.yml
# Workflow name
name: ci
# Event for the workflow
on: push
# List of jobs
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Use Node
uses: actions/setup-node@v1
with:
always-auth: true
registry-url: https://registry.npmjs.org
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
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 --frozen-lockfile
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: main
token: ${{ secrets.GITHUB_TOKEN }}
buildScriptName: storybook:build