Merge release/2.4.0 into main branch (#1098) #160
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 build on main' | |
# Event for the workflow | |
on: | |
push: | |
branches: | |
- main | |
# List of jobs | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
env: | |
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # 👈 Required to retrieve git history | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
- run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && | |
npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN | |
- run: yarn | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |