Skip to content

Commit 4ec97f5

Browse files
Merge pull request #2202 from contentstack/staging
Devex | Hotfix Release | 29 Oct 2025
2 parents 90b5c51 + 5ff3e46 commit 4ec97f5

File tree

7 files changed

+118
-96
lines changed

7 files changed

+118
-96
lines changed

.talismanrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 87af2bc0ae8f9511eb8c7f939898bf24f81f87d54fdb2a4a35422a7f601238d7
3+
checksum: ca12061eb32da8cb2d0e3be8e10e89b3f23b2351df8d397e811b34040c9d79b5
44
- filename: pnpm-lock.yaml
5-
checksum: 55c56cfbb8057c4586594bf99ccc68e1f171fbf77ea49a5934ba7d2c52a2626a
5+
checksum: 45e2fb78b203e512a8a15eb508b82a9bfcbbfaddc461c02edb194a127b5168d9
66
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
77
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
88
- filename: packages/contentstack-import-setup/test/config.json

package-lock.json

Lines changed: 63 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-bulk-publish/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bulk-publish",
33
"description": "Contentstack CLI plugin for bulk publish actions",
4-
"version": "1.10.1",
4+
"version": "1.10.2",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {

packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,20 @@ class PublishEntriesCommand extends Command {
8888
updatedFlags.destEnv = updatedFlags.environments;
8989
updatedFlags.environment = updatedFlags['source-env'];
9090
updatedFlags.onlyEntries = true;
91-
if (updatedFlags.locales instanceof Array) {
92-
updatedFlags.locales.forEach((locale) => {
93-
updatedFlags.locale = locale;
94-
publishFunction(startCrossPublish);
95-
});
96-
} else {
97-
updatedFlags.locale = locales;
98-
publishFunction(startCrossPublish);
91+
if(Array.isArray(updatedFlags.contentTypes) && updatedFlags.contentTypes.length > 0){
92+
for (const contentType of updatedFlags.contentTypes) {
93+
updatedFlags.contentType = contentType;
94+
if (Array.isArray(updatedFlags.locales)) {
95+
for (const locale of updatedFlags.locales) {
96+
updatedFlags.locale = locale;
97+
console.log(`Bulk publish started for content type \x1b[36m${updatedFlags.contentType}\x1b[0m and locale is \x1b[36m${updatedFlags.locale}\x1b[0m`);
98+
await publishFunction(startCrossPublish);
99+
}
100+
} else {
101+
updatedFlags.locale = updatedFlags.locales;
102+
publishFunction(startCrossPublish);
103+
}
104+
}
99105
}
100106
} else {
101107
publishFunction(startPublish);

0 commit comments

Comments
 (0)