name: Prepare CI cache on: workflow_call: inputs: os: required: true type: string jobs: prepare-yarn-cache: name: Prepare yarn cache for ${{ inputs.os }} runs-on: ${{ inputs.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: lts/* cache: yarn - name: Validate cache env: # Use PnP and disable postinstall scripts as this just needs to # populate the cache for the other jobs YARN_NODE_LINKER: pnp YARN_ENABLE_SCRIPTS: false run: yarn --immutable