Fix build commands
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Hamcha 2022-05-10 16:36:08 +02:00
parent 5558ca679c
commit 1e8b3d6bf7
Signed by: hamcha
GPG Key ID: 1669C533B8CF6D89
2 changed files with 8 additions and 8 deletions

View File

@ -17,21 +17,21 @@ steps:
image: node
failure: ignore
commands:
- yarn
- npm ci
depends_on:
- restore-cache
- name: lint
image: node
commands:
- yarn lint
- npm run lint
depends_on:
- dependencies
- name: build_versioned
image: node
commands:
- yarn build
- npm run build
environment:
VITE_SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}
VITE_APP_REVISION: ${DRONE_COMMIT_SHA}
@ -44,10 +44,9 @@ steps:
- name: build_pr
image: node
commands:
- yarn build
- npm run build-pr
environment:
VITE_SUBPATH: /tghandbook/pr-${DRONE_PULL_REQUEST}
OUTDIR: ./dist-pr
VITE_APP_REVISION: ${DRONE_COMMIT_SHA}
when:
event:
@ -58,10 +57,9 @@ steps:
- name: build_branch
image: node
commands:
- yarn build
- npm run build-branch
environment:
VITE_SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}
OUTDIR: ./dist-branch
VITE_APP_REVISION: ${DRONE_COMMIT_SHA}
when:
event:

View File

@ -7,7 +7,9 @@
"scripts": {
"start": "vite",
"lint": "eslint src",
"build": "vite build --base=./"
"build": "vite build --base=./",
"build-branch": "vite build --base=./ --outDir=dist-branch",
"build-pr": "vite build --base=./ --outDir=dist-pr"
},
"dependencies": {
"@types/node": "^17.0.31",