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
3339 prefix : release
3440
3541 # Dev Dependencies
36- - name : Installing dependencies of dev dependencies
37- id : dev-dependencies-installation
38- if : ${{env.release_releaseAll == 'true' || env.release_plugins_dev-dependencies == 'true'}}
39- working-directory : ./packages/contentstack-dev-dependencies
40- run : npm install
41- - name : Compiling dev dependencies
42- if : ${{ steps.dev-dependencies-installation.conclusion == 'success' }}
43- working-directory : ./packages/contentstack-dev-dependencies
44- run : npm run prepack
4542 - name : Publishing dev dependencies (Beta)
4643 uses : JS-DevTools/npm-publish@v3
4744 if : ${{ steps.dev-dependencies-installation.conclusion == 'success' }}
5148 tag : beta
5249
5350 # Utilities
54- - name : Installing dependencies of utilities
55- id : utilities-installation
56- if : ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
57- working-directory : ./packages/contentstack-utilities
58- run : npm install
59- - name : Compiling utilities
60- if : ${{ steps.utilities-installation.conclusion == 'success' }}
61- working-directory : ./packages/contentstack-utilities
62- run : npm run prepack
6351 - name : Publishing utilities (Beta)
6452 uses : JS-DevTools/npm-publish@v3
6553 if : ${{ steps.utilities-installation.conclusion == 'success' }}
6957 tag : beta
7058
7159 # Command
72- - name : Installing dependencies of command
73- id : command-installation
74- if : ${{env.release_releaseAll == 'true' || env.release_plugins_command == 'true'}}
75- working-directory : ./packages/contentstack-command
76- run : npm install
77- - name : Compiling command
78- if : ${{ steps.command-installation.conclusion == 'success' }}
79- working-directory : ./packages/contentstack-command
80- run : npm run prepack
8160 - name : Publishing command (Beta)
8261 uses : JS-DevTools/npm-publish@v3
8362 if : ${{ steps.command-installation.conclusion == 'success' }}
8766 tag : beta
8867
8968 # Config
90- - name : Installing dependencies of config
91- id : config-installation
92- if : ${{env.release_releaseAll == 'true' || env.release_plugins_config == 'true'}}
93- working-directory : ./packages/contentstack-config
94- run : npm install
95- - name : Compiling config
96- if : ${{ steps.config-installation.conclusion == 'success' }}
97- working-directory : ./packages/contentstack-config
98- run : npm run prepack
9969 - name : Publishing config (Beta)
10070 uses : JS-DevTools/npm-publish@v3
10171 if : ${{ steps.config-installation.conclusion == 'success' }}
@@ -105,15 +75,6 @@ jobs:
10575 tag : beta
10676
10777 # Auth
108- - name : Installing dependencies of auth
109- id : auth-installation
110- if : ${{env.release_releaseAll == 'true' || env.release_plugins_auth == 'true'}}
111- working-directory : ./packages/contentstack-auth
112- run : npm install
113- - name : Compiling auth
114- if : ${{ steps.auth-installation.conclusion == 'success' }}
115- working-directory : ./packages/contentstack-auth
116- run : npm run prepack
11778 - name : Publishing auth (Beta)
11879 uses : JS-DevTools/npm-publish@v3
11980 if : ${{ steps.auth-installation.conclusion == 'success' }}
0 commit comments