Change order of build steps
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
370452f246
commit
ecfbb721a5
|
@ -28,6 +28,7 @@ steps:
|
|||
depends_on:
|
||||
- install-deps
|
||||
commands:
|
||||
- npm run build:images
|
||||
- npm run build:web
|
||||
|
||||
- name: generate-calendar
|
||||
|
@ -37,13 +38,6 @@ steps:
|
|||
commands:
|
||||
- npm run build:calendar
|
||||
|
||||
- name: optimize-images
|
||||
image: node:16
|
||||
depends_on:
|
||||
- install-deps
|
||||
commands:
|
||||
- npm run build:images
|
||||
|
||||
- name: export
|
||||
image: node:16
|
||||
depends_on:
|
||||
|
|
|
@ -29,7 +29,7 @@ export async function optimizeImages() {
|
|||
const imagePaths = await getFilePathsInDirectory(IMAGES_SOURCE_DIRECTORY);
|
||||
await fse.emptyDir(IMAGES_DESTINATION_DIRECTORY);
|
||||
|
||||
const imagePool = new ImagePool(2);
|
||||
const imagePool = new ImagePool();
|
||||
|
||||
await Promise.all(
|
||||
imagePaths.map(async (imagePath) => {
|
||||
|
|
Loading…
Reference in New Issue