1- name : Release CLI Plugins (Production)
1+ name : Release CLI Plugins v1-Legacy
22
33on :
44 push :
5- branches : [main ]
5+ branches : [v1-legacy ]
66 workflow_dispatch : # manually trigger the workflow
77
88jobs :
@@ -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
0 commit comments