From 98692824ad0efa90c7c118446bf322d32790d3e7 Mon Sep 17 00:00:00 2001 From: Nate Houk Date: Sat, 2 Sep 2023 09:32:01 +0200 Subject: [PATCH 1/5] Update chromatic-github-action.js.mdx Update to fix errors with fetch-depth --- docs/snippets/common/chromatic-github-action.js.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index c064b7ae6cf6..8e796479564b 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -15,7 +15,13 @@ jobs: # Job steps steps: - uses: actions/checkout@v3 - - run: yarn + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'npm' + - run: npm ci #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 # Options required for Chromatic's GitHub Action From 1bfdfb16b657bf2b36e563bd83d5144425f906d0 Mon Sep 17 00:00:00 2001 From: Nate Houk Date: Wed, 20 Sep 2023 06:47:39 +0200 Subject: [PATCH 2/5] Update chromatic-github-action.js.mdx --- docs/snippets/common/chromatic-github-action.js.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index 8e796479564b..17ba831a0cc2 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -19,8 +19,8 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v3 with: - node-version: 20 - cache: 'npm' + node-version: 18 + cache: 'yarn' - run: npm ci #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 From b3674b8c0382af83015724cedf1c86dd6b277314 Mon Sep 17 00:00:00 2001 From: Nate Houk Date: Wed, 20 Sep 2023 06:50:40 +0200 Subject: [PATCH 3/5] Update chromatic-github-action.js.mdx --- docs/snippets/common/chromatic-github-action.js.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index 17ba831a0cc2..ed13fa937ac1 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -21,7 +21,7 @@ jobs: with: node-version: 18 cache: 'yarn' - - run: npm ci + - run: yarn ci #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 # Options required for Chromatic's GitHub Action From 72ab5b36ef43ea6421d6c9aa504d48f9e96a1013 Mon Sep 17 00:00:00 2001 From: Nate Houk Date: Tue, 10 Oct 2023 08:35:20 +0200 Subject: [PATCH 4/5] Update chromatic-github-action.js.mdx --- docs/snippets/common/chromatic-github-action.js.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index ed13fa937ac1..c026ef70970b 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -21,8 +21,7 @@ jobs: with: node-version: 18 cache: 'yarn' - - run: yarn ci - #👇 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: From 9e1ec616ec0ab2a4d4e1e9d3b0613bb3fe0d3790 Mon Sep 17 00:00:00 2001 From: Nate Houk Date: Tue, 10 Oct 2023 16:40:55 +0200 Subject: [PATCH 5/5] Update chromatic-github-action.js.mdx --- docs/snippets/common/chromatic-github-action.js.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/snippets/common/chromatic-github-action.js.mdx b/docs/snippets/common/chromatic-github-action.js.mdx index c026ef70970b..8b1c055636a9 100644 --- a/docs/snippets/common/chromatic-github-action.js.mdx +++ b/docs/snippets/common/chromatic-github-action.js.mdx @@ -21,6 +21,7 @@ jobs: with: node-version: 18 cache: 'yarn' + - run: yarn #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 # Options required for Chromatic's GitHub Action