diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index c064b7ae6cf6..8b1c055636a9 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -15,8 +15,14 @@ jobs: # Job steps steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' - run: yarn - #👇 Adds Chromatic as a step in the workflow + #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 # Options required for Chromatic's GitHub Action with: