Skip to content

Commit b6000cc

Browse files
committed
Merge branch 'staging' into fix/build
2 parents bd5d549 + 8b3d8e8 commit b6000cc

File tree

4 files changed

+357
-347
lines changed

4 files changed

+357
-347
lines changed

.github/config/release.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"releaseAll": true,
3-
"plugins": {
4-
"utilities": false,
5-
"command": false,
6-
"config": false,
7-
"auth": false,
8-
"export": false,
9-
"import": true,
10-
"clone": false,
11-
"export-to-csv": false,
12-
"migrate-rte": false,
13-
"migration": false,
14-
"seed": false,
15-
"bootstrap": false,
16-
"bulk-publish": false,
17-
"dev-dependencies": false,
18-
"launch": false,
19-
"branches": false,
20-
"core": false
21-
}
22-
}
2+
"releaseAll": true,
3+
"plugins": {
4+
"utilities": false,
5+
"command": false,
6+
"config": false,
7+
"auth": false,
8+
"export": false,
9+
"import": false,
10+
"clone": false,
11+
"export-to-csv": false,
12+
"migrate-rte": false,
13+
"migration": false,
14+
"seed": false,
15+
"bootstrap": false,
16+
"bulk-publish": false,
17+
"dev-dependencies": false,
18+
"launch": false,
19+
"branches": false,
20+
"core": false
21+
}
22+
}

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,17 @@ jobs:
293293
token: ${{ secrets.NPM_TOKEN }}
294294
package: ./packages/contentstack/package.json
295295
- uses: actions/checkout@v4
296+
if: ${{ steps.publish-core.conclusion == 'success' }}
296297
with:
297298
ref: 'prod-qa-pipeline'
298299
- run: echo ${{ steps.publish-core.outputs.version }} > version.md
300+
if: ${{ steps.publish-core.conclusion == 'success' }}
299301
- uses: EndBug/add-and-commit@v9
302+
if: ${{ steps.publish-core.conclusion == 'success' }}
300303
with:
301304
message: 'Released version'
302305
- name: Create Release
306+
if: ${{ steps.publish-core.conclusion == 'success' }}
303307
id: create_release
304308
env:
305309
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

packages/contentstack-utilities/src/cli-table.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ export default class CLITable {
7878
// Return only requested flags
7979
return Object.entries(flags)
8080
.filter(([key]) => columns.includes(key))
81-
.reduce((acc, [key, value]) => {
82-
acc[key] = value;
83-
return acc;
84-
}, {} as Record<string, any>);
81+
.reduce(
82+
(acc, [key, value]) => {
83+
acc[key] = value;
84+
return acc;
85+
},
86+
{} as Record<string, any>,
87+
);
8588
}
8689

8790
static render(headers: TableHeader[], data: Record<string, unknown>[], flags: TableFlags, options?: TableOptions) {
@@ -98,12 +101,15 @@ export default class CLITable {
98101
const selectedColumns = flags.columns.split(',');
99102
headers = headers.filter((header) => selectedColumns.includes(header.value));
100103
tableData = tableData.map((row) =>
101-
selectedColumns.reduce((acc, key) => {
102-
if (row[key] !== undefined) {
103-
acc[key] = row[key];
104-
}
105-
return acc;
106-
}, {} as Record<string, unknown>),
104+
selectedColumns.reduce(
105+
(acc, key) => {
106+
if (row[key] !== undefined) {
107+
acc[key] = row[key];
108+
}
109+
return acc;
110+
},
111+
{} as Record<string, unknown>,
112+
),
107113
);
108114
}
109115
// **Sort Data**

0 commit comments

Comments
 (0)