Created
June 1, 2022 06:40
-
-
Save mizchi/34e14192969ac3680175f4018f9e249c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- id: turbo-cache | |
uses: actions/cache@v2 | |
with: | |
path: .turbo | |
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: | | |
turbo-${{ github.job }}-${{ github.ref_name }}- | |
- uses: pnpm/action-setup@v2.0.1 | |
id: pnpm-install | |
with: | |
version: 7.1.6 | |
run_install: false | |
- id: pnpm-cache | |
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- run: pnpm install --frozen-lockfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment