File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ name: Release CLI Core (v1 Beta)
22
33on :
44 workflow_dispatch :
5- push :
5+ workflow_run :
6+ workflows : ['Release CLI Platform Plugins (v1 Beta)']
7+ types :
8+ - completed
69 branches : [v1-beta]
7- paths :
8- - ' packages/contentstack/package.json'
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,22 +30,19 @@ 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
You can’t perform that action at this time.
0 commit comments