1- name : Release CLI Core (v2 Beta)
1+ name : Release CLI Core (v1 Beta)
22
33on :
44 workflow_dispatch :
5- push :
6- branches : [v2-beta]
7- paths :
8- - ' packages/contentstack/package.json'
5+ workflow_run :
6+ workflows : ['Release CLI Platform Plugins (v1 Beta)']
7+ types :
8+ - completed
9+ branches : [v1-beta]
910
1011jobs :
1112 build :
1213 runs-on : ubuntu-latest
14+ if : ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
1315 steps :
1416 - uses : actions/checkout@v4
1517 - uses : pnpm/action-setup@v4
@@ -28,29 +30,26 @@ jobs:
2830 - name : Clean the repository
2931 run : pnpm run clean:all
3032
33+ - name : Install root dependencies
34+ run : pnpm install --frozen-lockfile
35+
36+ - name : Build all packages
37+ run : pnpm -r --sort run build
38+
3139 - name : Reading Configuration
3240 id : release_config
3341 uses : rgarcia-phi/json-to-variables@v1.1.0
3442 with :
3543 filename : .github/config/release.json
3644 prefix : release
3745
38- # Core CLI
39- - name : Install all dependencies
40- id : core-installation
41- if : ${{env.release_releaseAll == 'true' || env.release_plugins_core == 'true'}}
42- run : pnpm install --frozen-lockfile
43-
44- - name : Build all packages
45- run : pnpm -r --concurrency 1 run build
46-
4746 - name : Publishing core (Beta)
4847 id : publish-core
4948 uses : JS-DevTools/npm-publish@v3
5049 with :
5150 token : ${{ secrets.NPM_TOKEN }}
5251 package : ./packages/contentstack/package.json
53- tag : beta
52+ tag : v1- beta
5453
5554 - name : Create Core Beta Release
5655 id : create_release
0 commit comments