build(deps-dev): bump @babel/preset-env from 7.24.0 to 7.26.0 #9155
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
# .github/workflows/chromatic.yml | |
# Workflow name | |
name: 'Chromatic' | |
# Event for the workflow | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# List of jobs | |
jobs: | |
chromatic-deployment: | |
# do not waste render on dependabot | |
if: contains(fromJson('["dependabot[bot]", "dependabot-preview[bot]"]'), github.actor) == false | |
# Operating System | |
runs-on: ubuntu-latest | |
# Job steps | |
steps: | |
# requires v1 @see https://www.chromatic.com/docs/github-actions | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup node and install deps | |
uses: ./.github/workflows/actions/node-setup | |
- name: Build libs | |
run: pnpm build | |
# 👇 Checks if the branch is not main and runs Chromatic | |
- name: Publish to Chromatic | |
if: github.ref != 'refs/heads/main' | |
uses: chromaui/action@v11 | |
# Required options for the Chromatic GitHub Action | |
with: | |
workingDir: storybook | |
buildScriptName: build | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
# 👇 Checks if the branch is main and accepts all changes in Chromatic | |
- name: Publish to Chromatic and auto accept changes | |
if: github.ref == 'refs/heads/main' | |
uses: chromaui/action@v11 | |
# Required options for the Chromatic GitHub Action | |
with: | |
workingDir: storybook | |
buildScriptName: build | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
autoAcceptChanges: true # 👈 Option to accept all changes |