From dd0c2de7cba14cb5402bf860af5005ae802df60e Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:18:00 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Use=20pnpm=20#1626?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dataset-backup.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dataset-backup.yaml b/.github/workflows/dataset-backup.yaml index 6107193bc..3f4434e56 100644 --- a/.github/workflows/dataset-backup.yaml +++ b/.github/workflows/dataset-backup.yaml @@ -12,12 +12,23 @@ jobs: matrix: dataset: ['global-development'] #${{ fromJson(needs.read-satellites.outputs.matrix) }} steps: + - name: Install pnpm 📦 + id: install-pnpm + uses: pnpm/action-setup@v2.2.4 + with: + version: '8.5.1' + - name: Cache pnpm modules 💾 + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + - uses: actions/checkout@v3 - name: Export Data env: SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY }} run: | - npm install -g @sanity/cli + pnpm install -g @sanity/cli sanity install SANITY_AUTH_TOKEN=$SANITY_AUTH_TOKEN sanity dataset export ${{ matrix.dataset }} backups/backup-${{ matrix.dataset }}.tar.gz - name: Upload backup.tar.gz