Skip to content

Commit

Permalink
[NO-CHANGELOG] Fix chromatic economy playground (#612)
Browse files Browse the repository at this point in the history
Co-authored-by: Sharif Alvis <[email protected]>
  • Loading branch information
sharonsheah and sharif9876 committed Jul 30, 2023
1 parent 946d9ee commit 563079a
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/economy-playground-storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Cache node modules
uses: actions/cache@v2
id: cache-node-modules
uses: actions/cache@v3
id: yarn-cache
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ secrets.CHROMATIC_PROJECT_TOKEN }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install
- name: Install dependencies
run: yarn install --immutable

- name: Build all packages
run: npm run build
- name: Build
run: export NODE_OPTIONS=--max-old-space-size=6144 && yarn build

- name: Build Checkout SDK
run: yarn workspace @imtbl/checkout-sdk build && yarn workspace @imtbl/checkout-widgets build
Expand All @@ -50,4 +58,4 @@ jobs:
run: cd packages/economy/playground

- name: Publish Economy Playground to Chromatic
run: npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} -d ${{ github.workspace }}/packages/economy/playground/storybook-static --exit-zero-on-changes
run: npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} -d ${{ github.workspace }}/packages/economy/playground/storybook-static --exit-zero-on-changes

0 comments on commit 563079a

Please sign in to comment.