fix Date equality in axis #461
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: Chromatic | |
# Runs chromatic on: | |
# every pull request where there are changes in stories/ or packages/ and the PR is not in draft mode | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'stories/**' | |
- 'packages/**' | |
jobs: | |
chromatic: | |
name: Storybook Publish | |
if: github.event.pull_request.draft == false && github.repository == 'FormidableLabs/victory' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
# TODO: Upgrade Node version. | |
# Node18 currently hits `Error: error:0308010C:digital envelope routines::unsupported` | |
# https://github.com/storybookjs/storybook/issues/16555 | |
# When we upgrade to webpack5 this should go away. | |
node-version: 16.x | |
# Wireit cache | |
- uses: google/wireit@setup-github-actions-caching/v1 | |
- uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 7 | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- name: Setup pnpm cache | |
uses: actions/cache@v3 | |
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 storybook:build | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |