diff --git a/.github/actions/cache-deps/action.yml b/.github/actions/cache-deps/action.yml index a712a31449..da3c1d5408 100644 --- a/.github/actions/cache-deps/action.yml +++ b/.github/actions/cache-deps/action.yml @@ -1,10 +1,5 @@ name: "Cache Dependencies" description: "Caches node_modules and other directories" -inputs: - cache-key: - description: "Cache key" - required: true - default: web-core-modules-${{ hashFiles('**/package.json', '**/yarn.lock') }} runs: using: "composite" steps: @@ -13,8 +8,8 @@ runs: with: path: | **/node_modules - .yarn/install-state.gz - key: ${{ inputs.cache-key }} + ${{ github.workspace }}/.yarn/install-state.gz + key: ${{ runner.os }}-web-core-modules-${{ hashFiles('**/package.json', '**/yarn.lock') }} - name: Nextjs/Cypress cache uses: actions/cache@v4