Skip to content

Commit

Permalink
Merge pull request #1301 from contentstack/hotfix/CS-43960
Browse files Browse the repository at this point in the history
fixed cross env publish with version
  • Loading branch information
shafeeqd959 authored Feb 27, 2024
2 parents f338cc1 + 7296ef3 commit 1eb036d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/contentstack-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-bootstrap/1.7.1 darwin-arm64 node-v20.8.0
@contentstack/cli-cm-bootstrap/1.8.0 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.4.0",
"version": "1.4.1",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/contentstack-bulk-publish/src/consumer/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async function publishEntry(data, _config, queue) {
.publish({
publishDetails: { environments: entryObj.environments, locales: lang },
locale: entryObj.locale || 'en-us',
version: entryObj.version
})
.then((publishEntryResponse) => {
if (!publishEntryResponse.error_message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
uid: items[index].data.uid,
content_type: items[index].content_type_uid,
locale: items[index].data.locale || 'en-us',
version: items[index].data._version,
publish_details: [items[index].data.publish_details] || [],
});
}
Expand Down Expand Up @@ -111,6 +112,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
environments: destEnv,
entryUid: items[index].data.uid,
locale: items[index].data.locale || 'en-us',
version: items[index].data._version,
Type: 'entry',
stack: stack,
});
Expand Down
2 changes: 2 additions & 0 deletions packages/contentstack-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ EXAMPLES
$ csdx config:set:region AZURE-EU
$ csdx config:set:region GCP-NA
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
```

Expand Down
4 changes: 3 additions & 1 deletion packages/contentstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli/1.13.3 darwin-arm64 node-v20.8.0
@contentstack/cli/1.14.0 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down Expand Up @@ -3196,6 +3196,8 @@ EXAMPLES
$ csdx config:set:region AZURE-EU
$ csdx config:set:region GCP-NA
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
```

Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli",
"description": "Command-line tool (CLI) to interact with Contentstack",
"version": "1.14.0",
"version": "1.14.1",
"author": "Contentstack",
"bin": {
"csdx": "./bin/run"
Expand All @@ -26,7 +26,7 @@
"@contentstack/cli-auth": "~1.3.17",
"@contentstack/cli-cm-bootstrap": "~1.8.0",
"@contentstack/cli-cm-branches": "~1.0.22",
"@contentstack/cli-cm-bulk-publish": "~1.4.0",
"@contentstack/cli-cm-bulk-publish": "~1.4.1",
"@contentstack/cli-cm-export": "~1.10.5",
"@contentstack/cli-cm-clone": "~1.10.0",
"@contentstack/cli-cm-export-to-csv": "~1.6.2",
Expand Down

0 comments on commit 1eb036d

Please sign in to comment.