From 764fffdcf87e483ac17a6fb364e086726a38e47d Mon Sep 17 00:00:00 2001 From: allo Date: Sat, 17 Feb 2024 19:32:12 +0800 Subject: [PATCH] chore(ci/lint-fix): setup node only once --- .github/workflows/markdown-lint-fix.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/markdown-lint-fix.yml b/.github/workflows/markdown-lint-fix.yml index d3608f8dd13ead..f70fb87b020f81 100644 --- a/.github/workflows/markdown-lint-fix.yml +++ b/.github/workflows/markdown-lint-fix.yml @@ -29,6 +29,7 @@ jobs: with: node-version-file: ".nvmrc" cache: yarn + cache-dependency-path: "**/yarn.lock" - name: Install all yarn packages run: | @@ -43,13 +44,6 @@ jobs: repository: mdn/content path: mdn/content - - name: Setup Node.js environment for mdn/content - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - cache: "yarn" - cache-dependency-path: mdn/content/yarn.lock - - name: Install all yarn packages for mdn/content working-directory: ${{ github.workspace }}/mdn/content run: yarn --frozen-lockfile