From d825475d6ca9f0ff790daf5926420077868c166d Mon Sep 17 00:00:00 2001 From: sophian Date: Mon, 13 Jan 2025 15:52:25 -0500 Subject: [PATCH] Update order --- .github/workflows/update-docs.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index ab16ab4..954cc14 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -14,6 +14,16 @@ jobs: - name: Checkout the repo uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Setup Yarn + run: | + corepack enable + corepack prepare yarn@4.5.0 --activate + - name: Run the gen:docs command run: yarn gen:docs @@ -32,19 +42,6 @@ jobs: if: steps.commit_check.outputs.has_changes == 'true' run: git push - - name: Setup Node.js - if: steps.commit_check.outputs.has_changes == 'true' - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Setup Yarn - if: steps.commit_check.outputs.has_changes == 'true' - run: | - corepack enable - corepack prepare yarn@stable --activate - yarn set version stable - - name: Install dependencies if: steps.commit_check.outputs.has_changes == 'true' run: yarn add simple-git