Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alanorth/hugo-theme-bootstrap4-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Orth <alan.orth@gmail.com>2021-03-23 11:13:11 +0300
committerAlan Orth <alan.orth@gmail.com>2021-03-23 11:16:02 +0300
commit7a2ac26879b915333a8a7c7b61a6ed5d173609e9 (patch)
treec1f868b14ac74f8333e83b4fb4628babb37c5525
parent72fe18fd4d3a1b5e24b64b9ec642f23f9bbba1cf (diff)
.drone.yml: Update npm before install and build
It seems that the issue with not being able to find webpack-cli is due to some behavior with an older version of npm. My local devel- opment environment has npm 7.6.x and so does the Node.js 15 conta- iner, while the Node.js 12 and 14 containers have npm 6.14.x. Updating npm fixes the issue with `npx webpack` not being able to find webpack-cli's webpack command (perhaps it installs the peer dependency automatically, I don't know).
-rw-r--r--.drone.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 746acec..fa0b841 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,6 +6,9 @@ steps:
- name: build
image: node:12-alpine
commands:
+ - npm --version
+ - npm install -g npm
+ - npm --version
- npm install
- npm run build
@@ -18,6 +21,9 @@ steps:
- name: build
image: node:14-alpine
commands:
+ - npm --version
+ - npm install -g npm
+ - npm --version
- npm install
- npm run build
@@ -30,5 +36,8 @@ steps:
- name: build
image: node:15-alpine
commands:
+ - npm --version
+ - npm install -g npm
+ - npm --version
- npm install
- npm run build