From a91a39fe809f7c94138ca4c766039767b846b8ed Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:01:44 -0400 Subject: [PATCH] Move checkout step before getting Node version (#6500) --- .github/workflows/chromatic.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 09ba9f4c4c..ccaf9a1a6a 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -12,6 +12,11 @@ jobs: runs-on: ubuntu-20.04 steps: + - name: Checkout repo + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + with: + fetch-depth: 0 + - name: Get Node Version id: retrieve-node-version run: | @@ -24,11 +29,6 @@ jobs: with: node-version: ${{ steps.retrieve-node-version.outputs.node_version }} - - name: Checkout repo - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - with: - fetch-depth: 0 - - name: Cache npm id: npm-cache uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1