fix: Setup pnpm as package manager in workflows

This commit is contained in:
Bart van der Braak 2023-06-13 23:09:09 +02:00
parent 885a5f8d99
commit 043c639aa1
2 changed files with 24 additions and 7 deletions

View file

@ -21,6 +21,9 @@ jobs:
env: env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps: steps:
- name: Sticky Comment on Pull Request - name: Sticky Comment on Pull Request
uses: marocchino/sticky-pull-request-comment@v2.6.2 uses: marocchino/sticky-pull-request-comment@v2.6.2
@ -31,13 +34,19 @@ jobs:
![Loading](https://github.com/bartvdbraak/omnidash/assets/3996360/8e85bc78-53ac-41de-bdb6-bedfe8c6d8c1) ![Loading](https://github.com/bartvdbraak/omnidash/assets/3996360/8e85bc78-53ac-41de-bdb6-bedfe8c6d8c1)
- name: Check out - name: Checkout Git repository
uses: actions/checkout@v3.5.3 uses: actions/checkout@v3.5.3
- name: Set up Node.js - name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.2
- name: Setup Node.js
uses: actions/setup-node@v3.6.0 uses: actions/setup-node@v3.6.0
with: with:
node-version: 18 node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies - name: Install Dependencies
run: pnpm add -g @unlighthouse/cli puppeteer run: pnpm add -g @unlighthouse/cli puppeteer

View file

@ -16,15 +16,23 @@ jobs:
run-checks: run-checks:
name: Run checks name: Run checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps: steps:
- name: Check out Git repository - name: Checkout Git repository
uses: actions/checkout@v3.5.3 uses: actions/checkout@v3.5.3
- name: Set up Node.js - name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.2
- name: Setup Node.js
uses: actions/setup-node@v3.6.0 uses: actions/setup-node@v3.6.0
with: with:
node-version: 18 node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Node.js dependencies - name: Install Node.js dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile