feat: Migrate deployment scripts to use pnpm for dependency management

This commit is contained in:
2025-08-26 22:26:24 +02:00
parent efc218f445
commit 1b22ec4491
2 changed files with 22 additions and 10 deletions

View File

@@ -17,26 +17,32 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies and build
run: |
npm ci
npm run build
pnpm install --frozen-lockfile
pnpm run build
- name: Install http-server
run: npm install --save-dev http-server
run: pnpm add -D http-server
- name: Start HTTP server
run: npx http-server ./dist -p 8080 &
run: pnpx http-server ./dist -p 8080 &
env:
CI: true
- name: Run Cypress tests and Browserslist
run: npm run test
run: pnpm run test
env:
CYPRESS_baseUrl: http://localhost:8080

View File

@@ -17,26 +17,32 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies and build
run: |
npm ci
npm run build
pnpm install --frozen-lockfile
pnpm run build
- name: Install http-server
run: npm install --save-dev http-server
run: pnpm add -D http-server
- name: Start HTTP server
run: npx http-server ./dist -p 8080 &
run: pnpx http-server ./dist -p 8080 &
env:
CI: true
- name: Run Cypress tests and Browserslist
run: npm run test
run: pnpm run test
env:
CYPRESS_baseUrl: http://localhost:8080