Skip to content

Commit

Permalink
Enable chromatic in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VilppeRiskidev committed Aug 27, 2024
1 parent 086dcba commit 0ae60ef
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,34 +128,33 @@ jobs:
- name: Build @thunderstore/cyberstorm-remix
run: yarn workspace @thunderstore/cyberstorm-remix build

# Disabled since Storybook is currently broken
# chromatic-deployment:
# runs-on: ubuntu-latest
# needs: ["test", "pre-commit"]
# strategy:
# matrix:
# projects: [
# { dir: "apps/cyberstorm-storybook", token: "CHROMATIC_CYBERSTORM_TOKEN" },
# ]
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Set up Node ${{ needs.get-node-version.outputs.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ needs.get-node-version.outputs.node-version }}
# cache: "yarn"
# - name: Set fontawesome token
# run: |
# npm config set "@fortawesome:registry" https://npm.fontawesome.com/
# npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.NPM_FA_TOKEN }}
# - name: Install Yarn dependencies
# run: yarn install --frozen-lockfile
# - name: Publish to Chromatic
# uses: chromaui/action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# projectToken: ${{ secrets[matrix.projects.token] }}
# workingDir: ${{ matrix.projects.dir }}
# exitOnceUploaded: true
chromatic-deployment:
runs-on: ubuntu-latest
needs: ["test", "pre-commit"]
strategy:
matrix:
projects: [
{ dir: "apps/cyberstorm-storybook", token: "CHROMATIC_CYBERSTORM_TOKEN" },
]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node ${{ needs.get-node-version.outputs.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ needs.get-node-version.outputs.node-version }}
cache: "yarn"
- name: Set fontawesome token
run: |
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.NPM_FA_TOKEN }}
- name: Install Yarn dependencies
run: yarn install --frozen-lockfile
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets[matrix.projects.token] }}
workingDir: ${{ matrix.projects.dir }}
exitOnceUploaded: true

0 comments on commit 0ae60ef

Please sign in to comment.