1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00
hugo-theme-bootstrap4-blog/.drone.yml
Alan Orth 7a2ac26879
All checks were successful
continuous-integration/drone/push Build is passing
.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).
2021-03-23 10:16:02 +02:00

44 lines
586 B
YAML

kind: pipeline
type: docker
name: node12
steps:
- name: build
image: node:12-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build
---
kind: pipeline
type: docker
name: node14
steps:
- name: build
image: node:14-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build
---
kind: pipeline
type: docker
name: node15
steps:
- name: build
image: node:15-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build