2222 - name : Install pnpm
2323 run : corepack prepare pnpm@10.28.0 --activate
2424
25+ - name : Clean the repository
26+ run : pnpm run clean:all
27+
2528 - name : Install root dependencies
26- run : pnpm install
29+ run : pnpm install --frozen-lockfile
30+
31+ - name : Build all plugins
32+ run : pnpm -r --sort run build
2733
2834 - name : Reading Configuration
2935 id : release_config
@@ -33,211 +39,106 @@ jobs:
3339 prefix : release
3440
3541 # Variants
36- - name : Installing dependencies of variants
37- id : variants-installation
38- if : ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
39- working-directory : ./packages/contentstack-variants
40- run : npm install
41- - name : Compiling variants
42- if : ${{ steps.variants-installation.conclusion == 'success' }}
43- working-directory : ./packages/contentstack-variants
44- run : npm run prepack
4542 - name : Publishing variants (Beta)
4643 uses : JS-DevTools/npm-publish@v3
47- if : ${{ steps.variants-installation.conclusion == 'success' }}
4844 with :
4945 token : ${{ secrets.NPM_TOKEN }}
5046 package : ./packages/contentstack-variants/package.json
5147 access : public
5248 tag : beta
5349
5450 # Export
55- - name : Installing dependencies of export
56- id : export-installation
57- if : ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}}
58- working-directory : ./packages/contentstack-export
59- run : npm install
60- - name : Compiling export
61- if : ${{ steps.export-installation.conclusion == 'success' }}
62- working-directory : ./packages/contentstack-export
63- run : npm run prepack
6451 - name : Publishing export (Beta)
6552 uses : JS-DevTools/npm-publish@v3
66- if : ${{ steps.export-installation.conclusion == 'success' }}
6753 with :
6854 token : ${{ secrets.NPM_TOKEN }}
6955 package : ./packages/contentstack-export/package.json
7056 tag : beta
7157
7258 # Audit
73- - name : Installing dependencies of audit
74- id : audit-installation
75- if : ${{env.release_releaseAll == 'true' || env.release_plugins_audit == 'true'}}
76- working-directory : ./packages/contentstack-audit
77- run : npm install
78- - name : Compiling audit
79- if : ${{ steps.audit-installation.conclusion == 'success' }}
80- working-directory : ./packages/contentstack-audit
81- run : npm run prepack
8259 - name : Publishing audit (Beta)
8360 uses : JS-DevTools/npm-publish@v3
84- if : ${{ steps.audit-installation.conclusion == 'success' }}
8561 with :
8662 token : ${{ secrets.NPM_TOKEN }}
8763 package : ./packages/contentstack-audit/package.json
8864 access : public
8965 tag : beta
9066
9167 # Import
92- - name : Installing dependencies of import
93- id : import-installation
94- if : ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}}
95- working-directory : ./packages/contentstack-import
96- run : npm install
97- - name : Compiling import
98- if : ${{ steps.import-installation.conclusion == 'success' }}
99- working-directory : ./packages/contentstack-import
100- run : npm run prepack
10168 - name : Publishing import (Beta)
10269 uses : JS-DevTools/npm-publish@v3
103- if : ${{ steps.import-installation.conclusion == 'success' }}
10470 with :
10571 token : ${{ secrets.NPM_TOKEN }}
10672 package : ./packages/contentstack-import/package.json
10773 tag : beta
10874
10975 # Clone
110- - name : Installing dependencies of clone
111- id : clone-installation
112- if : ${{env.release_releaseAll == 'true' || env.release_plugins_clone == 'true'}}
113- working-directory : ./packages/contentstack-clone
114- run : npm install
11576 - name : Publishing clone (Beta)
11677 uses : JS-DevTools/npm-publish@v3
117- if : ${{ steps.clone-installation.conclusion == 'success' }}
11878 with :
11979 token : ${{ secrets.NPM_TOKEN }}
12080 package : ./packages/contentstack-clone/package.json
12181 tag : beta
12282
12383 # Import Setup
124- - name : Installing dependencies of import-setup
125- id : import-setup-installation
126- if : ${{env.release_releaseAll == 'true' || env.release_plugins_import_setup == 'true'}}
127- working-directory : ./packages/contentstack-import-setup
128- run : npm install
129- - name : Compiling import-setup
130- if : ${{ steps.import-setup-installation.conclusion == 'success' }}
131- working-directory : ./packages/contentstack-import-setup
132- run : npm run prepack
13384 - name : Publishing import-setup (Beta)
13485 uses : JS-DevTools/npm-publish@v3
135- if : ${{ steps.import-setup-installation.conclusion == 'success' }}
13686 with :
13787 token : ${{ secrets.NPM_TOKEN }}
13888 package : ./packages/contentstack-import-setup/package.json
13989 access : public
14090 tag : beta
14191
14292 # Export to CSV
143- - name : Installing dependencies of export to csv
144- id : export-to-csv-installation
145- if : ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}}
146- working-directory : ./packages/contentstack-export-to-csv
147- run : npm install
14893 - name : Publishing export to csv (Beta)
14994 uses : JS-DevTools/npm-publish@v3
150- if : ${{ steps.export-to-csv-installation.conclusion == 'success' }}
15195 with :
15296 token : ${{ secrets.NPM_TOKEN }}
15397 package : ./packages/contentstack-export-to-csv/package.json
15498 tag : beta
15599
156100 # Migration
157- - name : Installing dependencies of migration
158- id : migration-installation
159- if : ${{env.release_releaseAll == 'true' || env.release_plugins_migration == 'true'}}
160- working-directory : ./packages/contentstack-migration
161- run : npm install
162101 - name : Publishing migration (Beta)
163102 uses : JS-DevTools/npm-publish@v3
164- if : ${{ steps.migration-installation.conclusion == 'success' }}
165103 with :
166104 token : ${{ secrets.NPM_TOKEN }}
167105 package : ./packages/contentstack-migration/package.json
168106 tag : beta
169107
170108 # Seed
171- - name : Installing dependencies of seed
172- id : seed-installation
173- if : ${{env.release_releaseAll == 'true' || env.release_plugins_seed == 'true'}}
174- working-directory : ./packages/contentstack-seed
175- run : npm install
176- - name : Compiling seed
177- if : ${{ steps.seed-installation.conclusion == 'success' }}
178- working-directory : ./packages/contentstack-seed
179- run : npm run prepack
180109 - name : Publishing seed (Beta)
181110 uses : JS-DevTools/npm-publish@v3
182- if : ${{ steps.seed-installation.conclusion == 'success' }}
183111 with :
184112 token : ${{ secrets.NPM_TOKEN }}
185113 package : ./packages/contentstack-seed/package.json
186114 tag : beta
187115
188116 # Bootstrap
189- - name : Installing dependencies of bootstrap
190- id : bootstrap-installation
191- if : ${{env.release_releaseAll == 'true' || env.release_plugins_bootstrap == 'true'}}
192- working-directory : ./packages/contentstack-bootstrap
193- run : npm install
194- - name : Compiling bootstrap
195- if : ${{ steps.bootstrap-installation.conclusion == 'success' }}
196- working-directory : ./packages/contentstack-bootstrap
197- run : npm run prepack
198117 - name : Publishing bootstrap (Beta)
199118 uses : JS-DevTools/npm-publish@v3
200- if : ${{ steps.bootstrap-installation.conclusion == 'success' }}
201119 with :
202120 token : ${{ secrets.NPM_TOKEN }}
203121 package : ./packages/contentstack-bootstrap/package.json
204122 tag : beta
205123
206124 # Bulk Publish
207- - name : Installing dependencies of bulk publish
208- id : bulk-publish-installation
209- if : ${{env.release_releaseAll == 'true' || env.release_plugins_bulk-publish == 'true'}}
210- working-directory : ./packages/contentstack-bulk-publish
211- run : npm install
212125 - name : Publishing bulk publish (Beta)
213126 uses : JS-DevTools/npm-publish@v3
214- if : ${{ steps.bulk-publish-installation.conclusion == 'success' }}
215127 with :
216128 token : ${{ secrets.NPM_TOKEN }}
217129 package : ./packages/contentstack-bulk-publish/package.json
218130 tag : beta
219131
220132 # Branches
221- - name : Installing dependencies of branches
222- id : branches-installation
223- if : ${{env.release_releaseAll == 'true' || env.release_plugins_branches == 'true'}}
224- working-directory : ./packages/contentstack-branches
225- run : npm install
226- - name : Compiling branches
227- if : ${{ steps.branches-installation.conclusion == 'success' }}
228- working-directory : ./packages/contentstack-branches
229- run : npm run prepack
230133 - name : Publishing branches (Beta)
231134 uses : JS-DevTools/npm-publish@v3
232- if : ${{ steps.branches-installation.conclusion == 'success' }}
233135 with :
234136 token : ${{ secrets.NPM_TOKEN }}
235137 package : ./packages/contentstack-branches/package.json
236138 access : public
237139 tag : beta
238140
239141 - name : Create Beta Release
240- if : ${{ steps.publish-core.conclusion == 'success' }}
241142 id : create_release
242143 env :
243144 GITHUB_TOKEN : ${{ secrets.PKG_TOKEN }}
0 commit comments