From c20c7b46eea053b1229006b7dcab50639689ea83 Mon Sep 17 00:00:00 2001 From: Ravi Sundram Date: Mon, 24 Jun 2024 14:38:55 +1000 Subject: [PATCH] Update GitHub workflow --- .github/workflows/chromatic.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 5d16f24..2872a2d 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -12,14 +12,19 @@ jobs: runs-on: ubuntu-latest # Job steps steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 with: fetch-depth: 0 - - run: yarn + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + run: npm ci #👇 Adds Chromatic as a step in the workflow - - uses: chromaui/action@latest + - name: Run Chromatic + uses: chromaui/action@latest # Options required for Chromatic's GitHub Action with: #👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/vue/en/deploy/ to obtain it projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - token: ${{ secrets.GITHUB_TOKEN }}