Hi all, I am currently trying to set up a caching mechanism to improve the pipelines of my NodeJs application.
For example, this is how I am currently using it in Github actions for my open source repositories.
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
What is the recommended way to do this using buildkite? I could not find any information in the documentation. Thanks!