Skip to content

Commit 3ffcdd3

Browse files
authored
Merge pull request #1301 from contentstack/hotfix/CS-43960
fixed cross env publish with version
2 parents 74ea266 + c9e457d commit 3ffcdd3

7 files changed

Lines changed: 12 additions & 5 deletions

File tree

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1515
$ csdx COMMAND
1616
running command...
1717
$ csdx (--version)
18-
@contentstack/cli-cm-bootstrap/1.7.1 darwin-arm64 node-v20.8.0
18+
@contentstack/cli-cm-bootstrap/1.8.0 darwin-arm64 node-v20.8.0
1919
$ csdx --help [COMMAND]
2020
USAGE
2121
$ csdx COMMAND

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.4.0",
4+
"version": "1.4.1",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {

packages/contentstack-bulk-publish/src/consumer/publish.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ async function publishEntry(data, _config, queue) {
4343
.publish({
4444
publishDetails: { environments: entryObj.environments, locales: lang },
4545
locale: entryObj.locale || 'en-us',
46+
version: entryObj.version
4647
})
4748
.then((publishEntryResponse) => {
4849
if (!publishEntryResponse.error_message) {

packages/contentstack-bulk-publish/src/producer/cross-publish.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
4444
uid: items[index].data.uid,
4545
content_type: items[index].content_type_uid,
4646
locale: items[index].data.locale || 'en-us',
47+
version: items[index].data._version,
4748
publish_details: [items[index].data.publish_details] || [],
4849
});
4950
}
@@ -111,6 +112,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
111112
environments: destEnv,
112113
entryUid: items[index].data.uid,
113114
locale: items[index].data.locale || 'en-us',
115+
version: items[index].data._version,
114116
Type: 'entry',
115117
stack: stack,
116118
});

packages/contentstack-config/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ EXAMPLES
292292
293293
$ csdx config:set:region AZURE-EU
294294
295+
$ csdx config:set:region GCP-NA
296+
295297
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
296298
```
297299

packages/contentstack/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version|-v)
21-
@contentstack/cli/1.13.3 darwin-arm64 node-v20.8.0
21+
@contentstack/cli/1.14.0 darwin-arm64 node-v20.8.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND
@@ -3196,6 +3196,8 @@ EXAMPLES
31963196
31973197
$ csdx config:set:region AZURE-EU
31983198
3199+
$ csdx config:set:region GCP-NA
3200+
31993201
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
32003202
```
32013203

packages/contentstack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli",
33
"description": "Command-line tool (CLI) to interact with Contentstack",
4-
"version": "1.14.0",
4+
"version": "1.14.1",
55
"author": "Contentstack",
66
"bin": {
77
"csdx": "./bin/run"
@@ -26,7 +26,7 @@
2626
"@contentstack/cli-auth": "~1.3.17",
2727
"@contentstack/cli-cm-bootstrap": "~1.8.0",
2828
"@contentstack/cli-cm-branches": "~1.0.22",
29-
"@contentstack/cli-cm-bulk-publish": "~1.4.0",
29+
"@contentstack/cli-cm-bulk-publish": "~1.4.1",
3030
"@contentstack/cli-cm-export": "~1.10.5",
3131
"@contentstack/cli-cm-clone": "~1.10.0",
3232
"@contentstack/cli-cm-export-to-csv": "~1.6.2",

0 commit comments

Comments
 (0)