Skip to content

Instantly share code, notes, and snippets.

@mizchi
Created June 1, 2022 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizchi/34e14192969ac3680175f4018f9e249c to your computer and use it in GitHub Desktop.
Save mizchi/34e14192969ac3680175f4018f9e249c to your computer and use it in GitHub Desktop.
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