From 76d6a6b6324537b72326387ab47334a306046525 Mon Sep 17 00:00:00 2001 From: Alex Tkachev Date: Wed, 17 Apr 2024 17:35:27 +0400 Subject: [PATCH 1/2] chore: fix the Deploy workflow The Build step started to fail with the following error for unknown reason: Run pnpm run --filter @custom/website build > @custom/website@ build /home/runner/work/silverback-template/deploy > if node has-drupal.mjs; then pnpm build:drupal; else pnpm build:gatsby; fi > @custom/website@ build:drupal /home/runner/work/silverback-template/deploy > CLOUDINARY_CLOUDNAME=test start-test start:drupal 8888 build:gatsby sh: 1: start-test: not found --- apps/website/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/package.json b/apps/website/package.json index 2024acb54..2954fe07e 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -46,7 +46,7 @@ "test:static": "tsc --noEmit && eslint '**/*.{ts,tsx,js,jsx}' --ignore-path='./.gitignore'", "full-rebuild": "pnpm clean && pnpm build:gatsby", "start:drupal": "pnpm run --filter @custom/cms start", - "build:drupal": "CLOUDINARY_CLOUDNAME=test start-test start:drupal 8888 build:gatsby", + "build:drupal": "CLOUDINARY_CLOUDNAME=test pnpm start-test start:drupal 8888 build:gatsby", "build:gatsby": "gatsby build", "build": "if node has-drupal.mjs; then pnpm build:drupal; else pnpm build:gatsby; fi", "start": "publisher", From b0009a1c546b11611ba1a47b72a4bf125236fa8b Mon Sep 17 00:00:00 2001 From: Alex Tkachev Date: Wed, 17 Apr 2024 17:59:21 +0400 Subject: [PATCH 2/2] fix(dx): avoid issues with browser caches for JS files The change record: https://www.drupal.org/node/3301716 (Drupal 10.1.0) > Aggregate filenames are now based on the library definition instead of the contents of the file. However if a library does not have a version, the contents of the file will be additionally used to make up part of the hash. --- packages/drupal/gutenberg_blocks/gutenberg_blocks.libraries.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/drupal/gutenberg_blocks/gutenberg_blocks.libraries.yml b/packages/drupal/gutenberg_blocks/gutenberg_blocks.libraries.yml index 884f338e8..89370de15 100644 --- a/packages/drupal/gutenberg_blocks/gutenberg_blocks.libraries.yml +++ b/packages/drupal/gutenberg_blocks/gutenberg_blocks.libraries.yml @@ -1,5 +1,4 @@ edit: - version: VERSION js: js/gutenberg_blocks.umd.js: {} css: