mirror of
https://github.com/BreizhHardware/portfolio.git
synced 2026-03-18 21:40:29 +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:
|
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
|
||||||
|
|
||||||
|
|||||||
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user