⚙️ Upgrade pnpm version to 10 in workflows and standardize working directory quotes

This commit is contained in:
pheralb
2025-08-29 13:43:42 +01:00
parent 9d1a9c553d
commit 9a9d0440e6
3 changed files with 25 additions and 15 deletions
+18 -8
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev
jobs:
build-app:
@@ -12,17 +13,26 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup pnpm 9
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile
- name: Build app
run: pnpm vite:build
env:
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
SVGL_API_REQUESTS: ${{ secrets.SVGL_API_REQUESTS }}
run: pnpm build
+6 -6
View File
@@ -4,11 +4,11 @@ on:
push:
branches:
- main
- next
- dev
pull_request:
branches:
- main
- next
- dev
jobs:
vitest:
@@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup pnpm 9
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
- name: Install dependencies
run: pnpm install
@@ -34,10 +34,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup pnpm 9
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
- name: Install utility dependencies
run: pnpm install
+1 -1
View File
@@ -25,4 +25,4 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
packageManager: pnpm
workingDirectory: 'api-routes'
workingDirectory: "api-routes"