Skip to content

Commit bb2edc2

Browse files
authored
Merge pull request #349 from contentstack/chore/v1-legacy-release-workflow
Chore v1 legacy release workflow
2 parents 42cfe75 + a1a3c63 commit bb2edc2

42 files changed

Lines changed: 1212 additions & 1594 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release-production-plugins.yml renamed to .github/workflows/release-v1-legacy-plugins.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Release CLI Plugins (Production)
1+
name: Release CLI Plugins v1-Legacy
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [v1-legacy]
66
workflow_dispatch: # manually trigger the workflow
77

88
jobs:
@@ -45,159 +45,159 @@ jobs:
4545
with:
4646
token: ${{ secrets.NPM_TOKEN }}
4747
package: ./packages/contentstack-variants/package.json
48-
tag: latest
48+
tag: v1-x
4949

5050
# Export
5151
- name: Publishing export (Production)
5252
uses: JS-DevTools/npm-publish@v3
5353
with:
5454
token: ${{ secrets.NPM_TOKEN }}
5555
package: ./packages/contentstack-export/package.json
56-
tag: latest
56+
tag: v1-x
5757

5858
# Audit
5959
- name: Publishing audit (Production)
6060
uses: JS-DevTools/npm-publish@v3
6161
with:
6262
token: ${{ secrets.NPM_TOKEN }}
6363
package: ./packages/contentstack-audit/package.json
64-
tag: latest
64+
tag: v1-x
6565

6666
# Import
6767
- name: Publishing import (Production)
6868
uses: JS-DevTools/npm-publish@v3
6969
with:
7070
token: ${{ secrets.NPM_TOKEN }}
7171
package: ./packages/contentstack-import/package.json
72-
tag: latest
72+
tag: v1-x
7373

7474
# Clone
7575
- name: Publishing clone (Production)
7676
uses: JS-DevTools/npm-publish@v3
7777
with:
7878
token: ${{ secrets.NPM_TOKEN }}
7979
package: ./packages/contentstack-clone/package.json
80-
tag: latest
80+
tag: v1-x
8181

8282
# Import Setup
8383
- name: Publishing import-setup (Production)
8484
uses: JS-DevTools/npm-publish@v3
8585
with:
8686
token: ${{ secrets.NPM_TOKEN }}
8787
package: ./packages/contentstack-import-setup/package.json
88-
tag: latest
88+
tag: v1-x
8989

9090
# Export to CSV
9191
- name: Publishing export to csv (Production)
9292
uses: JS-DevTools/npm-publish@v3
9393
with:
9494
token: ${{ secrets.NPM_TOKEN }}
9595
package: ./packages/contentstack-export-to-csv/package.json
96-
tag: latest
96+
tag: v1-x
9797

9898
# Migration
9999
- name: Publishing migration (Production)
100100
uses: JS-DevTools/npm-publish@v3
101101
with:
102102
token: ${{ secrets.NPM_TOKEN }}
103103
package: ./packages/contentstack-migration/package.json
104-
tag: latest
104+
tag: v1-x
105105

106106
# Migrate RTE
107107
- name: Publishing migrate RTE (Production)
108108
uses: JS-DevTools/npm-publish@v3
109109
with:
110110
token: ${{ secrets.NPM_TOKEN }}
111111
package: ./packages/contentstack-migrate-rte/package.json
112-
tag: latest
112+
tag: v1-x
113113

114114
# Seed
115115
- name: Publishing seed (Production)
116116
uses: JS-DevTools/npm-publish@v3
117117
with:
118118
token: ${{ secrets.NPM_TOKEN }}
119119
package: ./packages/contentstack-seed/package.json
120-
tag: latest
120+
tag: v1-x
121121

122122
# Bootstrap
123123
- name: Publishing bootstrap (Production)
124124
uses: JS-DevTools/npm-publish@v3
125125
with:
126126
token: ${{ secrets.NPM_TOKEN }}
127127
package: ./packages/contentstack-bootstrap/package.json
128-
tag: latest
128+
tag: v1-x
129129

130130
# Bulk Publish
131131
- name: Publishing bulk publish (Production)
132132
uses: JS-DevTools/npm-publish@v3
133133
with:
134134
token: ${{ secrets.NPM_TOKEN }}
135135
package: ./packages/contentstack-bulk-publish/package.json
136-
tag: latest
136+
tag: v1-x
137137

138138
# Bulk Operations
139139
- name: Publishing bulk operations (Production)
140140
uses: JS-DevTools/npm-publish@v3
141141
with:
142142
token: ${{ secrets.NPM_TOKEN }}
143143
package: ./packages/contentstack-bulk-operations/package.json
144-
tag: latest
144+
tag: v1-x
145145

146146
# Branches
147147
- name: Publishing branches (Production)
148148
uses: JS-DevTools/npm-publish@v3
149149
with:
150150
token: ${{ secrets.NPM_TOKEN }}
151151
package: ./packages/contentstack-branches/package.json
152-
tag: latest
152+
tag: v1-x
153153

154154
# Apps CLI
155155
- name: Publishing apps-cli (Production)
156156
uses: JS-DevTools/npm-publish@v3
157157
with:
158158
token: ${{ secrets.NPM_TOKEN }}
159159
package: ./packages/contentstack-apps-cli/package.json
160-
tag: latest
160+
tag: v1-x
161161

162162
# Query Export
163163
- name: Publishing query export (Production)
164164
uses: JS-DevTools/npm-publish@v3
165165
with:
166166
token: ${{ secrets.NPM_TOKEN }}
167167
package: ./packages/contentstack-query-export/package.json
168-
tag: latest
168+
tag: v1-x
169169

170170
# Content Type
171171
- name: Publishing content-type (Production)
172172
uses: JS-DevTools/npm-publish@v3
173173
with:
174174
token: ${{ secrets.NPM_TOKEN }}
175175
package: ./packages/contentstack-content-type/package.json
176-
tag: latest
176+
tag: v1-x
177177

178178
# Regex Validate
179179
- name: Publishing regex-validate (Production)
180180
uses: JS-DevTools/npm-publish@v3
181181
with:
182182
token: ${{ secrets.NPM_TOKEN }}
183183
package: ./packages/contentstack-cli-cm-regex-validate/package.json
184-
tag: latest
184+
tag: v1-x
185185

186186
# Tsgen
187187
- name: Publishing tsgen (Production)
188188
uses: JS-DevTools/npm-publish@v3
189189
with:
190190
token: ${{ secrets.NPM_TOKEN }}
191191
package: ./packages/contentstack-cli-tsgen/package.json
192-
tag: latest
192+
tag: v1-x
193193

194194
# External Migrate
195195
- name: Publishing external-migrate (Production)
196196
uses: JS-DevTools/npm-publish@v3
197197
with:
198198
token: ${{ secrets.NPM_TOKEN }}
199199
package: ./packages/contentstack-external-migrate/package.json
200-
tag: latest
200+
tag: v1-x
201201

202202
- name: Create Production Release
203203
id: create_release
@@ -209,7 +209,7 @@ jobs:
209209
PREVIOUS_PROD=$(gh release list --limit 10 | grep -v 'prerelease' | head -1 | cut -f1)
210210
211211
if [ -n "$PREVIOUS_PROD" ]; then
212-
gh release create "v${VERSION}" --title "Production Release $VERSION" --notes-from-tag "$PREVIOUS_PROD"
212+
gh release create "v${VERSION}" --title "v1-Legacy Release $VERSION" --notes-from-tag "$PREVIOUS_PROD" --latest=false
213213
else
214-
gh release create "v${VERSION}" --title "Production Release $VERSION" --generate-notes
214+
gh release create "v${VERSION}" --title "v1-Legacy Release $VERSION" --generate-notes --latest=false
215215
fi

packages/contentstack-apps-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/apps-cli
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/apps-cli/1.6.1 darwin-arm64 node-v22.21.1
21+
@contentstack/apps-cli/1.7.5 darwin-arm64 node-v22.21.1
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-apps-cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/apps-cli",
3-
"version": "1.7.4",
3+
"version": "1.7.5",
44
"description": "App ClI",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-apps-cli",
@@ -22,9 +22,9 @@
2222
],
2323
"dependencies": {
2424
"@apollo/client": "^3.14.1",
25-
"@contentstack/cli-command": "~1.8.5",
25+
"@contentstack/cli-command": "~1.8.7",
2626
"@contentstack/cli-launch": "^1.11.1",
27-
"@contentstack/cli-utilities": "~1.19.1",
27+
"@contentstack/cli-utilities": "~1.19.2",
2828
"adm-zip": "^0.6.0",
2929
"chalk": "^4.1.2",
3030
"lodash": "^4.18.1",
@@ -106,4 +106,4 @@
106106
"app:deploy": "APDP"
107107
}
108108
}
109-
}
109+
}

packages/contentstack-audit/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-audit
1616
$ csdx COMMAND
1717
running command...
1818
$ csdx (--version|-v)
19-
@contentstack/cli-audit/1.21.0 darwin-arm64 node-v24.18.0
19+
@contentstack/cli-audit/1.21.1 darwin-arm64 node-v22.21.1
2020
$ csdx --help [COMMAND]
2121
USAGE
2222
$ csdx COMMAND
@@ -192,7 +192,7 @@ EXAMPLES
192192
$ csdx cm:stacks:audit --report-path=<path> --modules=content-types --filter="name="<filter-value>"
193193
```
194194

195-
_See code: [src/commands/cm/stacks/audit/index.ts](https://github.com/contentstack/audit/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/index.ts)_
195+
_See code: [src/commands/cm/stacks/audit/index.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/index.ts)_
196196

197197
## `csdx cm:stacks:audit:fix`
198198

@@ -252,5 +252,5 @@ EXAMPLES
252252
$ csdx cm:stacks:audit:fix --report-path=<path> --modules=content-types --filter="name="<filter-value>" --copy-dir --copy-path=<path>
253253
```
254254

255-
_See code: [src/commands/cm/stacks/audit/fix.ts](https://github.com/contentstack/audit/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/fix.ts)_
255+
_See code: [src/commands/cm/stacks/audit/fix.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/fix.ts)_
256256
<!-- commandsstop -->

packages/contentstack-audit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-audit",
3-
"version": "1.21.0",
3+
"version": "1.21.1",
44
"description": "Contentstack audit plugin",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli",
@@ -18,8 +18,8 @@
1818
"/oclif.manifest.json"
1919
],
2020
"dependencies": {
21-
"@contentstack/cli-command": "~1.8.5",
22-
"@contentstack/cli-utilities": "~1.19.1",
21+
"@contentstack/cli-command": "~1.8.7",
22+
"@contentstack/cli-utilities": "~1.19.2",
2323
"@oclif/core": "^4.11.4",
2424
"chalk": "^4.1.2",
2525
"fast-csv": "^4.3.6",

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-cm-bootstrap/1.19.9 darwin-arm64 node-v24.18.0
21+
@contentstack/cli-cm-bootstrap/1.19.10 darwin-arm64 node-v22.21.1
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-bootstrap/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bootstrap",
33
"description": "Bootstrap contentstack apps",
4-
"version": "1.19.9",
4+
"version": "1.19.10",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -17,10 +17,10 @@
1717
"lint": "eslint \"src/**/*.ts\""
1818
},
1919
"dependencies": {
20-
"@contentstack/cli-cm-seed": "~1.15.10",
21-
"@contentstack/cli-command": "~1.8.5",
22-
"@contentstack/cli-config": "~1.21.1",
23-
"@contentstack/cli-utilities": "~1.19.1",
20+
"@contentstack/cli-cm-seed": "~1.15.11",
21+
"@contentstack/cli-command": "~1.8.7",
22+
"@contentstack/cli-config": "~1.21.2",
23+
"@contentstack/cli-utilities": "~1.19.2",
2424
"@oclif/core": "^4.11.4",
2525
"inquirer": "8.2.7",
2626
"mkdirp": "^2.1.6",

packages/contentstack-branches/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $ npm install -g @contentstack/cli-cm-branches
2323
$ csdx COMMAND
2424
running command...
2525
$ csdx (--version)
26-
@contentstack/cli-cm-branches/1.8.5 darwin-arm64 node-v24.18.0
26+
@contentstack/cli-cm-branches/1.8.6 darwin-arm64 node-v22.21.1
2727
$ csdx --help [COMMAND]
2828
USAGE
2929
$ csdx COMMAND
@@ -64,7 +64,7 @@ EXAMPLES
6464
$ csdx cm:branches -k <stack api key>
6565
```
6666

67-
_See code: [src/commands/cm/branches/index.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/index.ts)_
67+
_See code: [src/commands/cm/branches/index.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/index.ts)_
6868

6969
## `csdx cm:branches:create`
7070

@@ -92,7 +92,7 @@ EXAMPLES
9292
$ csdx cm:branches:create --source main --uid new_branch --stack-api-key bltxxxxxxxx
9393
```
9494

95-
_See code: [src/commands/cm/branches/create.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/create.ts)_
95+
_See code: [src/commands/cm/branches/create.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/create.ts)_
9696

9797
## `csdx cm:branches:delete [-uid <value>] [-k <value>]`
9898

@@ -121,7 +121,7 @@ EXAMPLES
121121
$ csdx cm:branches:delete --uid main --stack-api-key bltxxxxxxxx --yes
122122
```
123123

124-
_See code: [src/commands/cm/branches/delete.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/delete.ts)_
124+
_See code: [src/commands/cm/branches/delete.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/delete.ts)_
125125

126126
## `csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>] [--format <value>] [--csv-path <value>]`
127127

@@ -177,7 +177,7 @@ EXAMPLES
177177
$ csdx cm:branches:diff --stack-api-key "bltxxxxxxxx" --base-branch "main" --compare-branch "develop" --module "content-types" --format "detailed-text" --csv-path "./reports/diff-report.csv"
178178
```
179179

180-
_See code: [src/commands/cm/branches/diff.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/diff.ts)_
180+
_See code: [src/commands/cm/branches/diff.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/diff.ts)_
181181

182182
## `csdx cm:branches:merge [-k <value>][--compare-branch <value>] [--no-revert] [--export-summary-path <value>] [--use-merge-summary <value>] [--comment <value>] [--base-branch <value>]`
183183

@@ -216,7 +216,7 @@ EXAMPLES
216216
$ csdx cm:branches:merge -k bltxxxxxxxx --compare-branch feature-branch --no-revert
217217
```
218218

219-
_See code: [src/commands/cm/branches/merge.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/merge.ts)_
219+
_See code: [src/commands/cm/branches/merge.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/merge.ts)_
220220

221221
## `csdx cm:branches:merge-status -k <value> --merge-uid <value>`
222222

@@ -239,5 +239,5 @@ EXAMPLES
239239
$ csdx cm:branches:merge-status --stack-api-key bltxxxxxxxx --merge-uid merge_abc123
240240
```
241241

242-
_See code: [src/commands/cm/branches/merge-status.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/merge-status.ts)_
242+
_See code: [src/commands/cm/branches/merge-status.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-branches/src/commands/cm/branches/merge-status.ts)_
243243
<!-- commandsstop -->

packages/contentstack-branches/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@contentstack/cli-cm-branches",
33
"description": "Contentstack CLI plugin to do branches operations",
4-
"version": "1.8.5",
4+
"version": "1.8.6",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "~1.8.5",
9-
"@contentstack/cli-utilities": "~1.19.1",
8+
"@contentstack/cli-command": "~1.8.7",
9+
"@contentstack/cli-utilities": "~1.19.2",
1010
"@oclif/core": "^4.11.4",
1111
"chalk": "^4.1.2",
1212
"just-diff": "^6.0.2",

packages/contentstack-bulk-operations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $ npm install -g @contentstack/cli-bulk-operations
2424
$ csdx COMMAND
2525
running command...
2626
$ csdx (--version|-v)
27-
@contentstack/cli-bulk-operations/1.2.0 darwin-arm64 node-v22.21.1
27+
@contentstack/cli-bulk-operations/1.2.5 darwin-arm64 node-v22.21.1
2828
$ csdx --help [COMMAND]
2929
USAGE
3030
$ csdx COMMAND

0 commit comments

Comments
 (0)