From a373629fc2a2fd8773c74590a93ebff9c6e646d2 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Mon, 30 Jan 2023 22:48:24 +0100 Subject: [PATCH] fix: gh actions use pnpm --- .github/workflows/deploy.yml | 9 ++++++--- .github/workflows/test.yml | 13 ++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dd08cfb8..4382624c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,15 +22,18 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 7 - uses: actions/setup-node@v3 with: node-version: 18 - cache: "npm" + cache: "pnpm" - name: Install Dependencies - run: npm ci && cd website && npm ci + run: pnpm ci - name: Build - run: npm run build + run: pnpm build - name: Setup Pages uses: actions/configure-pages@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f7d0ead..849db7d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,11 +11,14 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 7 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm install - - run: npm run format-check - - run: npm run lint - - run: npm test + cache: 'pnpm' + - run: pnpm install + - run: pnpm run format-check + - run: pnpm run lint + - run: pnpm test