mirror of
https://github.com/BreizhHardware/portfolio.git
synced 2026-01-18 16:37:22 +01:00
feat: Migrate deployment scripts to use pnpm for dependency management
This commit is contained in:
16
.github/workflows/deploy-test.yml
vendored
16
.github/workflows/deploy-test.yml
vendored
@@ -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
|
||||
|
||||
|
||||
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user