|
1 | | -name: Release CLI Plugins |
| 1 | +name: CLI Release Pipeline |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [main] |
| 5 | + branches: [v1-beta] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build: |
9 | | - runs-on: ubuntu-latest |
10 | | - steps: |
11 | | - - uses: actions/checkout@v4 |
12 | | - - uses: pnpm/action-setup@v4 |
13 | | - with: |
14 | | - version: 7 |
15 | | - - uses: actions/setup-node@v4 |
16 | | - with: |
17 | | - node-version: '22.x' |
| 8 | + plugins: |
| 9 | + uses: ./.github/workflows/release-v1-beta-platform-plugins.yml |
18 | 10 |
|
19 | | - - name: Enable Corepack |
20 | | - run: corepack enable |
21 | | - |
22 | | - - name: Install pnpm |
23 | | - run: corepack prepare pnpm@7 --activate |
24 | | - |
25 | | - - name: Install root dependencies |
26 | | - run: pnpm install |
27 | | - |
28 | | - - name: Reading Configuration |
29 | | - id: release_config |
30 | | - uses: rgarcia-phi/json-to-variables@v1.1.0 |
31 | | - with: |
32 | | - filename: .github/config/release.json |
33 | | - prefix: release |
34 | | - - name: Installing dependencies of dev dependencies |
35 | | - id: dev-dependencies-installation |
36 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_dev-dependencies == 'true'}} |
37 | | - working-directory: ./packages/contentstack-dev-dependencies |
38 | | - run: npm install |
39 | | - - name: Compiling dev dependencies |
40 | | - if: ${{ steps.dev-dependencies-installation.conclusion == 'success' }} |
41 | | - working-directory: ./packages/contentstack-dev-dependencies |
42 | | - run: npm run prepack |
43 | | - - name: Publishing dev dependencies |
44 | | - uses: JS-DevTools/npm-publish@v3 |
45 | | - if: ${{ steps.dev-dependencies-installation.conclusion == 'success' }} |
46 | | - with: |
47 | | - token: ${{ secrets.NPM_TOKEN }} |
48 | | - package: ./packages/contentstack-dev-dependencies/package.json |
49 | | - - name: Installing dependencies of utilities |
50 | | - id: utilities-installation |
51 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}} |
52 | | - working-directory: ./packages/contentstack-utilities |
53 | | - run: npm install |
54 | | - - name: Compiling utilities |
55 | | - if: ${{ steps.utilities-installation.conclusion == 'success' }} |
56 | | - working-directory: ./packages/contentstack-utilities |
57 | | - run: npm run prepack |
58 | | - - name: Publishing utilities |
59 | | - uses: JS-DevTools/npm-publish@v3 |
60 | | - if: ${{ steps.utilities-installation.conclusion == 'success' }} |
61 | | - with: |
62 | | - token: ${{ secrets.NPM_TOKEN }} |
63 | | - package: ./packages/contentstack-utilities/package.json |
64 | | - - name: Installing dependencies of variants |
65 | | - id: variants-installation |
66 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}} |
67 | | - working-directory: ./packages/contentstack-variants |
68 | | - run: npm install |
69 | | - - name: Compiling variants |
70 | | - if: ${{ steps.variants-installation.conclusion == 'success' }} |
71 | | - working-directory: ./packages/contentstack-variants |
72 | | - run: npm run prepack |
73 | | - - name: Publishing variants |
74 | | - uses: JS-DevTools/npm-publish@v3 |
75 | | - if: ${{ steps.variants-installation.conclusion == 'success' }} |
76 | | - with: |
77 | | - token: ${{ secrets.NPM_TOKEN }} |
78 | | - package: ./packages/contentstack-variants/package.json |
79 | | - access: public |
80 | | - - name: Installing dependencies of command |
81 | | - id: command-installation |
82 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_command == 'true'}} |
83 | | - working-directory: ./packages/contentstack-command |
84 | | - run: npm install |
85 | | - - name: Compiling command |
86 | | - if: ${{ steps.command-installation.conclusion == 'success' }} |
87 | | - working-directory: ./packages/contentstack-command |
88 | | - run: npm run prepack |
89 | | - - name: Publishing command |
90 | | - uses: JS-DevTools/npm-publish@v3 |
91 | | - if: ${{ steps.command-installation.conclusion == 'success' }} |
92 | | - with: |
93 | | - token: ${{ secrets.NPM_TOKEN }} |
94 | | - package: ./packages/contentstack-command/package.json |
95 | | - - name: Installing dependencies of config |
96 | | - id: config-installation |
97 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_config == 'true'}} |
98 | | - working-directory: ./packages/contentstack-config |
99 | | - run: npm install |
100 | | - - name: Compiling config |
101 | | - if: ${{ steps.config-installation.conclusion == 'success' }} |
102 | | - working-directory: ./packages/contentstack-config |
103 | | - run: npm run prepack |
104 | | - - name: Publishing config |
105 | | - uses: JS-DevTools/npm-publish@v3 |
106 | | - if: ${{ steps.config-installation.conclusion == 'success' }} |
107 | | - with: |
108 | | - token: ${{ secrets.NPM_TOKEN }} |
109 | | - package: ./packages/contentstack-config/package.json |
110 | | - - name: Installing dependencies of auth |
111 | | - id: auth-installation |
112 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_auth == 'true'}} |
113 | | - working-directory: ./packages/contentstack-auth |
114 | | - run: npm install |
115 | | - - name: Compiling auth |
116 | | - if: ${{ steps.auth-installation.conclusion == 'success' }} |
117 | | - working-directory: ./packages/contentstack-auth |
118 | | - run: npm run prepack |
119 | | - - name: Publishing auth |
120 | | - uses: JS-DevTools/npm-publish@v3 |
121 | | - if: ${{ steps.auth-installation.conclusion == 'success' }} |
122 | | - with: |
123 | | - token: ${{ secrets.NPM_TOKEN }} |
124 | | - package: ./packages/contentstack-auth/package.json |
125 | | - - name: Installing dependencies of export |
126 | | - id: export-installation |
127 | | - if: ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}} |
128 | | - working-directory: ./packages/contentstack-export |
129 | | - run: npm install |
130 | | - - name: Compiling export |
131 | | - if: ${{ steps.export-installation.conclusion == 'success' }} |
132 | | - working-directory: ./packages/contentstack-export |
133 | | - run: npm run prepack |
134 | | - - name: Publishing export |
135 | | - uses: JS-DevTools/npm-publish@v3 |
136 | | - if: ${{ steps.export-installation.conclusion == 'success' }} |
137 | | - with: |
138 | | - token: ${{ secrets.NPM_TOKEN }} |
139 | | - package: ./packages/contentstack-export/package.json |
140 | | - - name: Installing dependencies of audit |
141 | | - id: audit-installation |
142 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_audit == 'true'}} |
143 | | - working-directory: ./packages/contentstack-audit |
144 | | - run: npm install |
145 | | - - name: Compiling audit |
146 | | - if: ${{ steps.audit-installation.conclusion == 'success' }} |
147 | | - working-directory: ./packages/contentstack-audit |
148 | | - run: npm run prepack |
149 | | - - name: Publishing audit |
150 | | - uses: JS-DevTools/npm-publish@v3 |
151 | | - if: ${{ steps.audit-installation.conclusion == 'success' }} |
152 | | - with: |
153 | | - token: ${{ secrets.NPM_TOKEN }} |
154 | | - package: ./packages/contentstack-audit/package.json |
155 | | - access: public |
156 | | - - name: Installing dependencies of import |
157 | | - id: import-installation |
158 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}} |
159 | | - working-directory: ./packages/contentstack-import |
160 | | - run: npm install |
161 | | - - name: Compiling import |
162 | | - if: ${{ steps.import-installation.conclusion == 'success' }} |
163 | | - working-directory: ./packages/contentstack-import |
164 | | - run: npm run prepack |
165 | | - - name: Publishing import |
166 | | - uses: JS-DevTools/npm-publish@v3 |
167 | | - if: ${{ steps.import-installation.conclusion == 'success' }} |
168 | | - with: |
169 | | - token: ${{ secrets.NPM_TOKEN }} |
170 | | - package: ./packages/contentstack-import/package.json |
171 | | - - name: Installing dependencies of clone |
172 | | - id: clone-installation |
173 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_clone == 'true'}} |
174 | | - working-directory: ./packages/contentstack-clone |
175 | | - run: npm install |
176 | | - - name: Compiling Clone |
177 | | - if: ${{ steps.clone-installation.conclusion == 'success' }} |
178 | | - working-directory: ./packages/contentstack-clone |
179 | | - run: npm run prepack |
180 | | - - name: Publishing clone |
181 | | - uses: JS-DevTools/npm-publish@v3 |
182 | | - if: ${{ steps.clone-installation.conclusion == 'success' }} |
183 | | - with: |
184 | | - token: ${{ secrets.NPM_TOKEN }} |
185 | | - package: ./packages/contentstack-clone/package.json |
186 | | - - name: Installing dependencies of import-setup |
187 | | - id: import-setup-installation |
188 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_import_setup == 'true'}} |
189 | | - working-directory: ./packages/contentstack-import-setup |
190 | | - run: npm install |
191 | | - - name: Compiling import-setup |
192 | | - if: ${{ steps.import-setup-installation.conclusion == 'success' }} |
193 | | - working-directory: ./packages/contentstack-import-setup |
194 | | - run: npm run prepack |
195 | | - - name: Publishing import-setup |
196 | | - uses: JS-DevTools/npm-publish@v3 |
197 | | - if: ${{ steps.import-setup-installation.conclusion == 'success' }} |
198 | | - with: |
199 | | - token: ${{ secrets.NPM_TOKEN }} |
200 | | - package: ./packages/contentstack-import-setup/package.json |
201 | | - access: public |
202 | | - - name: Installing dependencies of export to csv |
203 | | - id: export-to-csv-installation |
204 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}} |
205 | | - working-directory: ./packages/contentstack-export-to-csv |
206 | | - run: npm install |
207 | | - - name: Compiling export to csv |
208 | | - if: ${{ steps.export-to-csv-installation.conclusion == 'success' }} |
209 | | - working-directory: ./packages/contentstack-export-to-csv |
210 | | - run: npm run prepack |
211 | | - - name: Publishing export to csv |
212 | | - uses: JS-DevTools/npm-publish@v3 |
213 | | - if: ${{ steps.export-to-csv-installation.conclusion == 'success' }} |
214 | | - with: |
215 | | - token: ${{ secrets.NPM_TOKEN }} |
216 | | - package: ./packages/contentstack-export-to-csv/package.json |
217 | | - - name: Installing dependencies of migrate rte |
218 | | - id: migrate-rte-installation |
219 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_migrate-rte == 'true'}} |
220 | | - working-directory: ./packages/contentstack-migrate-rte |
221 | | - run: npm install |
222 | | - - name: Publishing migrate rte |
223 | | - uses: JS-DevTools/npm-publish@v3 |
224 | | - if: ${{ steps.migrate-rte-installation.conclusion == 'success' }} |
225 | | - with: |
226 | | - token: ${{ secrets.NPM_TOKEN }} |
227 | | - package: ./packages/contentstack-migrate-rte/package.json |
228 | | - - name: Installing dependencies of migration |
229 | | - id: migration-installation |
230 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_migration == 'true'}} |
231 | | - working-directory: ./packages/contentstack-migration |
232 | | - run: npm install |
233 | | - - name: Compiling Migration |
234 | | - if: ${{ steps.migration-installation.conclusion == 'success' }} |
235 | | - working-directory: ./packages/contentstack-migration |
236 | | - run: npm run prepack |
237 | | - - name: Publishing migration |
238 | | - uses: JS-DevTools/npm-publish@v3 |
239 | | - if: ${{ steps.migration-installation.conclusion == 'success' }} |
240 | | - with: |
241 | | - token: ${{ secrets.NPM_TOKEN }} |
242 | | - package: ./packages/contentstack-migration/package.json |
243 | | - - name: Installing dependencies of seed |
244 | | - id: seed-installation |
245 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_seed == 'true'}} |
246 | | - working-directory: ./packages/contentstack-seed |
247 | | - run: npm install |
248 | | - - name: Compiling seed |
249 | | - if: ${{ steps.seed-installation.conclusion == 'success' }} |
250 | | - working-directory: ./packages/contentstack-seed |
251 | | - run: npm run prepack |
252 | | - - name: Publishing seed |
253 | | - uses: JS-DevTools/npm-publish@v3 |
254 | | - if: ${{ steps.seed-installation.conclusion == 'success' }} |
255 | | - with: |
256 | | - token: ${{ secrets.NPM_TOKEN }} |
257 | | - package: ./packages/contentstack-seed/package.json |
258 | | - - name: Installing dependencies of bootstrap |
259 | | - id: bootstrap-installation |
260 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_bootstrap == 'true'}} |
261 | | - working-directory: ./packages/contentstack-bootstrap |
262 | | - run: npm install |
263 | | - - name: Compiling bootstrap |
264 | | - if: ${{ steps.bootstrap-installation.conclusion == 'success' }} |
265 | | - working-directory: ./packages/contentstack-bootstrap |
266 | | - run: npm run prepack |
267 | | - - name: Publishing bootstrap |
268 | | - uses: JS-DevTools/npm-publish@v3 |
269 | | - if: ${{ steps.bootstrap-installation.conclusion == 'success' }} |
270 | | - with: |
271 | | - token: ${{ secrets.NPM_TOKEN }} |
272 | | - package: ./packages/contentstack-bootstrap/package.json |
273 | | - - name: Installing dependencies of bulk publish |
274 | | - id: bulk-publish-installation |
275 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_bulk-publish == 'true'}} |
276 | | - working-directory: ./packages/contentstack-bulk-publish |
277 | | - run: npm install |
278 | | - - name: Publishing bulk publish |
279 | | - uses: JS-DevTools/npm-publish@v3 |
280 | | - if: ${{ steps.bulk-publish-installation.conclusion == 'success' }} |
281 | | - with: |
282 | | - token: ${{ secrets.NPM_TOKEN }} |
283 | | - package: ./packages/contentstack-bulk-publish/package.json |
284 | | - - name: Installing dependencies of branches |
285 | | - id: branches-installation |
286 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_branches == 'true'}} |
287 | | - working-directory: ./packages/contentstack-branches |
288 | | - run: npm install |
289 | | - - name: Compiling branches |
290 | | - if: ${{ steps.branches-installation.conclusion == 'success' }} |
291 | | - working-directory: ./packages/contentstack-branches |
292 | | - run: npm run prepack |
293 | | - - name: Publishing branches |
294 | | - uses: JS-DevTools/npm-publish@v3 |
295 | | - if: ${{ steps.branches-installation.conclusion == 'success' }} |
296 | | - with: |
297 | | - token: ${{ secrets.NPM_TOKEN }} |
298 | | - package: ./packages/contentstack-branches/package.json |
299 | | - access: public |
300 | | - - name: Installing dependencies of core |
301 | | - id: core-installation |
302 | | - if: ${{env.release_releaseAll == 'true' || env.release_plugins_core == 'true'}} |
303 | | - working-directory: ./packages/contentstack |
304 | | - run: npm install |
305 | | - - name: Compiling core |
306 | | - if: ${{ steps.core-installation.conclusion == 'success' }} |
307 | | - working-directory: ./packages/contentstack |
308 | | - run: npm run prepack |
309 | | - - name: Publishing core |
310 | | - id: publish-core |
311 | | - uses: JS-DevTools/npm-publish@v3 |
312 | | - if: ${{ steps.core-installation.conclusion == 'success' }} |
313 | | - with: |
314 | | - token: ${{ secrets.NPM_TOKEN }} |
315 | | - package: ./packages/contentstack/package.json |
316 | | - - uses: actions/checkout@v4 |
317 | | - if: ${{ steps.publish-core.conclusion == 'success' }} |
318 | | - with: |
319 | | - ref: 'prod-qa-pipeline' |
320 | | - - run: echo ${{ steps.publish-core.outputs.version }} > version.md |
321 | | - if: ${{ steps.publish-core.conclusion == 'success' }} |
322 | | - - uses: EndBug/add-and-commit@v9 |
323 | | - if: ${{ steps.publish-core.conclusion == 'success' }} |
324 | | - with: |
325 | | - message: 'Released version' |
326 | | - - name: Create Release |
327 | | - if: ${{ steps.publish-core.conclusion == 'success' }} |
328 | | - id: create_release |
329 | | - env: |
330 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
331 | | - VERSION: ${{ steps.publish-core.outputs.version }} |
332 | | - run: gh release create v"$VERSION" --title "Release $VERSION" --generate-notes |
| 11 | + core: |
| 12 | + needs: plugins |
| 13 | + uses: ./.github/workflows/release-v1-beta-core.yml |
0 commit comments