Fix build commands
Some checks failed
continuous-integration/drone/push Build is failing

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",