This commit is contained in:
parent
5558ca679c
commit
1e8b3d6bf7
2 changed files with 8 additions and 8 deletions
12
.drone.yml
12
.drone.yml
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
Reference in a new issue