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

View File

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