From 4765f2ff1642818c3fa60f2affaa4b8a04ab79d8 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sat, 28 Sep 2024 23:37:03 -0700 Subject: [PATCH] build: install pnpm using pnpm github action (#927) --- .github/workflows/changeset.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index a06329b71..614a2412c 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -21,25 +21,29 @@ jobs: - name: checkout code repository uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - name: setup node.js uses: actions/setup-node@v4 with: node-version: 20 - cache: 'pnpm' - + cache: "pnpm" + - name: Cache turbo build setup uses: actions/cache@v4 - with: + with: path: .turbo key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- - - run: corepack enable - name: install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: create and publish versions uses: changesets/action@v1