A local-first personal finance app
improve CI yarn cache to make the fetch step quicker (#8252)
Matt Fiddamand19b4ddb704d
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 5571eb89b0..47f47aefac 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -22,7 +22,7 @@ runs:uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0with:node-version: 22- package-manager-cache: ${{ inputs.cache }}+ package-manager-cache: false- name: Install yarnrun: npm install -g yarnshell: bash@@ -38,6 +38,15 @@ runs:with:path: ${{ format('{0}/**/node_modules', inputs.working-directory) }}key: yarn-v1-${{ runner.os }}-${{ steps.get-node.outputs.version }}-${{ hashFiles(format('{0}/**/yarn.lock', inputs.working-directory)) }}+ - name: Cache Yarn download cache+ uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ if: ${{ inputs.cache == 'true' && steps.cache.outputs.cache-hit != 'true' }}+ with:+ path: ${{ format('{0}/.yarn/cache', inputs.working-directory) }}+ key: yarn-dl-${{ runner.os }}-${{ steps.get-node.outputs.version }}-${{ hashFiles(format('{0}/**/yarn.lock', inputs.working-directory)) }}+ restore-keys: |+ yarn-dl-${{ runner.os }}-${{ steps.get-node.outputs.version }}-+ yarn-dl-${{ runner.os }}-- name: Ensure Lage cache directory existsrun: mkdir -p "$WORKING_DIRECTORY/.lage"shell: bashdiff --git a/upcoming-release-notes/ci-yarn-download-cache.md b/upcoming-release-notes/ci-yarn-download-cache.mdnew file mode 100644index 0000000000..e7c9206281--- /dev/null+++ b/upcoming-release-notes/ci-yarn-download-cache.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [matt-fidd]+---++Improve CI yarn cache to make the fetch step quicker