mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-26 17:11:21 +00:00
refactor: use ci and PORT env
This commit is contained in:
parent
bd7f318514
commit
c7df9c0d7d
1 changed files with 3 additions and 2 deletions
5
.github/workflows/unlighthouse.yaml
vendored
5
.github/workflows/unlighthouse.yaml
vendored
|
@ -33,15 +33,16 @@ jobs:
|
||||||
uses: actions/setup-node@v3.8.1
|
uses: actions/setup-node@v3.8.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install --frozen-lockfile
|
run: npm ci
|
||||||
|
|
||||||
- name: Build production
|
- name: Build production
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Start Preview and Get Preview URL
|
- name: Start Preview and Get Preview URL
|
||||||
run: npm run preview --port ${{ env.PORT }} & echo $! > preview_pid
|
run: PORT=${{ env.PORT }} npm run preview & echo $! > preview_pid
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm add -g @unlighthouse/cli puppeteer
|
run: npm add -g @unlighthouse/cli puppeteer
|
||||||
|
|
Loading…
Reference in a new issue