From 0780f3e46c616c44631d6b1347a45691ae4bb363 Mon Sep 17 00:00:00 2001 From: Olling <48805670+Ollie-nl@users.noreply.github.com> Date: Tue, 24 Dec 2024 13:20:29 +0100 Subject: [PATCH] ci: Fix pnpm installatie via corepack --- .github/workflows/deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3df4ca..c050cda 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,3 +1,5 @@ +name: 🚀 Deploy to GitHub Pages + on: push: branches: @@ -6,6 +8,9 @@ on: branches: - main +permissions: + contents: write + jobs: build-and-test: runs-on: ubuntu-latest @@ -19,10 +24,8 @@ jobs: node-version: "18" cache: "pnpm" - - name: 📦 Install PNPM - uses: pnpm/action-setup@v2 - with: - version: 8 + - name: 📦 Enable Corepack and Install PNPM + run: corepack enable && corepack prepare pnpm@8.0.0 --activate - name: 📦 Install dependencies run: pnpm install @@ -44,10 +47,8 @@ jobs: node-version: "18" cache: "pnpm" - - name: 📦 Install PNPM - uses: pnpm/action-setup@v2 - with: - version: 8 + - name: 📦 Enable Corepack and Install PNPM + run: corepack enable && corepack prepare pnpm@8.0.0 --activate - name: 📦 Install dependencies run: pnpm install