diff --git a/.github/workflows/testOnDevice.yml b/.github/workflows/testOnDevice.yml index 861f8e40e..29933f696 100644 --- a/.github/workflows/testOnDevice.yml +++ b/.github/workflows/testOnDevice.yml @@ -19,12 +19,12 @@ jobs: run: | sed 's/%token%/${{ secrets.SENTRY_API_TOKEN }}/' ios/sentry.properties.dist > ios/sentry.properties # https://github.com/actions/cache/blob/main/examples.md#node---yarn - - name: Get Yarn cache directory path + - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Cache Yarn - uses: actions/cache@v2 - id: cache-yarn + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + + - uses: actions/cache@v3 + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}