Skip to content

Commit d89e6d9

Browse files
authored
Merge pull request #2453 from contentstack/fix/DX-5344
fixed core workflow
2 parents 1ede212 + c3eef2b commit d89e6d9

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

.github/workflows/release-v1-beta-core.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: Release CLI Core (v1 Beta)
22

33
on:
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

1011
jobs:
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

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# run: mv packages/contentstack/package.json packages/contentstack/package.json.disabled || true
2727

2828
- name: Install Dependencies (Excluding Contentstack)
29-
run: pnpm install --frozen-lockfile
29+
run: pnpm install --no-frozen-lockfile
3030

3131
- name: Build all plugins (Excluding Contentstack)
3232
run: |

packages/contentstack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli",
33
"description": "Command-line tool (CLI) to interact with Contentstack v1-beta",
4-
"version": "1.60.0-beta.5",
4+
"version": "1.60.0-beta.6",
55
"author": "Contentstack",
66
"bin": {
77
"csdx": "./bin/run.js"

0 commit comments

Comments
 (0)