From 1e8b3d6bf7e275d40f5b719b6ca7a3c65e63f8f9 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 10 May 2022 16:36:08 +0200 Subject: [PATCH] Fix build commands --- .drone.yml | 12 +++++------- package.json | 4 +++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3bb1890..1ed5e42 100644 --- a/.drone.yml +++ b/.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: diff --git a/package.json b/package.json index 79b7101..ae44587 100644 --- a/package.json +++ b/package.json @@ -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",