Skip to content

Commit 940a4db

Browse files
committed
chore: simplify lerna publish command and improve image loading with Promise.all
1 parent e0653bd commit 940a4db

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ jobs:
6262
run: |
6363
TAG="${GITHUB_REF#refs/tags/}"
6464
65-
# --provenance: Fondamentale per OIDC e sicurezza nel 2026
66-
# --yes: Evita blocchi interattivi in CI
67-
BASE_CMD="npx lerna publish from-package --ignore-scripts --provenance --yes"
65+
BASE_CMD="npx lerna publish from-package --ignore-scripts"
6866
6967
echo "Publishing tag: $TAG via OIDC"
7068

lerna.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"yes": true
1414
}
1515
},
16+
"useNx": true,
1617
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
1718
}

shapes/image/src/ImageDrawer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,13 @@ export class ImageDrawer implements IShapeDrawer<ImageParticle> {
8484
return;
8585
}
8686

87+
const promises: Promise<void>[] = [];
88+
8789
for (const imageData of options.preload) {
88-
await this._engine.loadImage(imageData);
90+
promises.push(this._engine.loadImage(imageData));
8991
}
92+
93+
await Promise.all(promises);
9094
}
9195

9296
loadShape(particle: ImageParticle): void {

0 commit comments

Comments
 (0)