From 38ae7434eb520248d5b76b2aca964ebca58bc25e Mon Sep 17 00:00:00 2001 From: Jake Strawn Date: Thu, 15 Feb 2024 12:44:06 -0500 Subject: [PATCH] feat(actions): Update step ordering. --- .github/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70a63623..32ec1181 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,9 @@ jobs: # @see https://github.com/marketplace/actions/checkout - name: Checkout Codebase uses: actions/checkout@v4 + + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH # @see https://github.com/marketplace/actions/setup-node-js-environment - uses: actions/setup-node@v4 @@ -60,9 +63,6 @@ jobs: - name: Initialize .npmrc run: cp $NPM_CONFIG_USERCONFIG .npmrc - - name: Use local Yarn version - run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - - name: Install run: yarn install env: @@ -85,6 +85,9 @@ jobs: # @see https://github.com/marketplace/actions/checkout - name: Checkout Codebase uses: actions/checkout@v4 + + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH # @see https://github.com/marketplace/actions/setup-node-js-environment - uses: actions/setup-node@v4 @@ -101,9 +104,6 @@ jobs: # Defaults to the user or organization that owns the workflow file scope: '@phase2' - - name: Use local Yarn version - run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - - name: Install run: yarn install @@ -128,6 +128,9 @@ jobs: - name: Checkout codebase uses: actions/checkout@v4 + - name: Use local Yarn version + run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH + # @see https://github.com/marketplace/actions/setup-node-js-environment - uses: actions/setup-node@v4 with: @@ -142,10 +145,7 @@ jobs: registry-url: 'https://npm.pkg.github.com' # Defaults to the user or organization that owns the workflow file scope: '@phase2' - - - name: Use local Yarn version - run: echo "$(pwd)/.yarn/releases" >> $GITHUB_PATH - + - name: Install run: yarn install