diff --git a/.github/workflows/storybook-test.yml b/.github/workflows/storybook-test.yml index 82d8258..59e7801 100644 --- a/.github/workflows/storybook-test.yml +++ b/.github/workflows/storybook-test.yml @@ -30,8 +30,17 @@ jobs: user-flow: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' - name: Install dependencies run: yarn - - name: Run Test - run: yarn storybook:test + - name: Publish to Chromatic + uses: chromaui/action@latest + with: + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + autoAcceptChanges: "main" + buildScriptName: "storybook:chromatic" + env: + CI: true