From 186ea8e52ee63fbe795061ba200ac89803aecde8 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Thu, 24 Oct 2024 15:21:55 +0200 Subject: [PATCH] build: use grouping in package publishing logic --- apps/admin-component-tests/package.json | 3 ++- apps/admin-demo/package.json | 3 ++- apps/admin-js/package.json | 3 ++- apps/admin-preset-bootstrap4/package.json | 3 ++- apps/admin-preset-dashicons/package.json | 3 ++- apps/admin-preset-default/package.json | 3 ++- apps/admin-preset-fontawesome/package.json | 3 ++- apps/admin/package.json | 3 ++- apps/app-builder/package.json | 3 ++- apps/backend-demo/package.json | 1 + apps/checkout-js/package.json | 3 ++- apps/checkout/package.json | 3 ++- libs/checkout-common/package.json | 3 ++- libs/checkout-delivery-options/package.json | 3 ++- libs/checkout-separate-address-fields/package.json | 3 ++- libs/checkout-tax-fields/package.json | 3 ++- monoweave.config.cjs | 1 + 17 files changed, 32 insertions(+), 15 deletions(-) diff --git a/apps/admin-component-tests/package.json b/apps/admin-component-tests/package.json index 9fec0239..364e40cb 100644 --- a/apps/admin-component-tests/package.json +++ b/apps/admin-component-tests/package.json @@ -56,5 +56,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin-demo/package.json b/apps/admin-demo/package.json index 2a713ca5..76009221 100644 --- a/apps/admin-demo/package.json +++ b/apps/admin-demo/package.json @@ -47,5 +47,6 @@ }, "volta": { "extends": "../../package.json" - } + }, + "deployGroup": "demo" } diff --git a/apps/admin-js/package.json b/apps/admin-js/package.json index 423ee65c..709a6302 100644 --- a/apps/admin-js/package.json +++ b/apps/admin-js/package.json @@ -48,5 +48,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin-preset-bootstrap4/package.json b/apps/admin-preset-bootstrap4/package.json index 58ac28ea..9481b1ff 100644 --- a/apps/admin-preset-bootstrap4/package.json +++ b/apps/admin-preset-bootstrap4/package.json @@ -50,5 +50,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin-preset-dashicons/package.json b/apps/admin-preset-dashicons/package.json index 28fcd8de..df6aba0d 100644 --- a/apps/admin-preset-dashicons/package.json +++ b/apps/admin-preset-dashicons/package.json @@ -47,5 +47,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin-preset-default/package.json b/apps/admin-preset-default/package.json index 57e89a12..3e7938f5 100644 --- a/apps/admin-preset-default/package.json +++ b/apps/admin-preset-default/package.json @@ -48,5 +48,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin-preset-fontawesome/package.json b/apps/admin-preset-fontawesome/package.json index fccc8dbf..9ac3ea82 100644 --- a/apps/admin-preset-fontawesome/package.json +++ b/apps/admin-preset-fontawesome/package.json @@ -46,5 +46,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/admin/package.json b/apps/admin/package.json index 677f1358..b7a10ead 100644 --- a/apps/admin/package.json +++ b/apps/admin/package.json @@ -66,5 +66,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "admin" } diff --git a/apps/app-builder/package.json b/apps/app-builder/package.json index 751b6c46..59adca34 100644 --- a/apps/app-builder/package.json +++ b/apps/app-builder/package.json @@ -65,5 +65,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "app-builder" } diff --git a/apps/backend-demo/package.json b/apps/backend-demo/package.json index 857c3873..3f7b5036 100644 --- a/apps/backend-demo/package.json +++ b/apps/backend-demo/package.json @@ -38,6 +38,7 @@ "volta": { "extends": "../../package.json" }, + "deployGroup": "demo", "nx": { "targets": { "build": { diff --git a/apps/checkout-js/package.json b/apps/checkout-js/package.json index 5fa3558a..c556220e 100644 --- a/apps/checkout-js/package.json +++ b/apps/checkout-js/package.json @@ -36,5 +36,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/apps/checkout/package.json b/apps/checkout/package.json index e812768b..d1dd91d0 100644 --- a/apps/checkout/package.json +++ b/apps/checkout/package.json @@ -46,5 +46,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/libs/checkout-common/package.json b/libs/checkout-common/package.json index eb90ede8..30c73143 100644 --- a/libs/checkout-common/package.json +++ b/libs/checkout-common/package.json @@ -45,5 +45,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/libs/checkout-delivery-options/package.json b/libs/checkout-delivery-options/package.json index 1af61461..30c49507 100644 --- a/libs/checkout-delivery-options/package.json +++ b/libs/checkout-delivery-options/package.json @@ -45,5 +45,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/libs/checkout-separate-address-fields/package.json b/libs/checkout-separate-address-fields/package.json index b95bca91..269d25ba 100644 --- a/libs/checkout-separate-address-fields/package.json +++ b/libs/checkout-separate-address-fields/package.json @@ -43,5 +43,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/libs/checkout-tax-fields/package.json b/libs/checkout-tax-fields/package.json index 167d8945..b434f62e 100644 --- a/libs/checkout-tax-fields/package.json +++ b/libs/checkout-tax-fields/package.json @@ -44,5 +44,6 @@ }, "publishConfig": { "access": "public" - } + }, + "deployGroup": "checkout" } diff --git a/monoweave.config.cjs b/monoweave.config.cjs index 755623d8..21abb029 100644 --- a/monoweave.config.cjs +++ b/monoweave.config.cjs @@ -9,6 +9,7 @@ module.exports = { autoCommitMessage: 'chore: release [skip ci]', changelogFilename: '/CHANGELOG.md', conventionalChangelogConfig: 'conventional-changelog-conventionalcommits', + packageGroupManifestField: 'deployGroup', persistVersions: true, plugins: ['@monoweave/plugin-github', '@edielemoine/monodeploy-plugin-github-actions'], prerelease: prereleaseBranches.includes(branch),