diff --git a/.github/workflows/build-lint.yaml b/.github/workflows/build-lint.yaml index 874f2f5..7308455 100644 --- a/.github/workflows/build-lint.yaml +++ b/.github/workflows/build-lint.yaml @@ -35,7 +35,18 @@ jobs: - name: 🏗 Setup nodejs corepack run: corepack enable - # corepack prepare yarn@stable --activate + + - name: 🏗 Get yarn config + id: yarn_config + run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT + + - uses: actions/cache@v3.3.2 + # id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + with: + path: ${{ steps.yarn_config.outputs.cache_folder }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: 🏗 Install dependencies run: yarn install --immutable diff --git a/.yarnrc.yml b/.yarnrc.yml index e69de29..199a779 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -0,0 +1 @@ +enableTelemetry: false