Change order of build steps
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Amy 2021-10-16 20:14:20 -04:00
parent 370452f246
commit ecfbb721a5
2 changed files with 2 additions and 8 deletions

View File

@ -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:

View File

@ -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) => {