Skip to content

Commit 47af1ef

Browse files
committed
updated release yml and updated build scrupt
1 parent cb6fb36 commit 47af1ef

File tree

3 files changed

+9
-48
lines changed

3 files changed

+9
-48
lines changed

.github/workflows/release-v1-beta-platform-plugins.yml

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ jobs:
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,15 +39,6 @@ jobs:
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' }}
@@ -51,15 +48,6 @@ jobs:
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' }}
@@ -69,15 +57,6 @@ jobs:
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' }}
@@ -87,15 +66,6 @@ jobs:
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' }}

packages/contentstack-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
8-
"build": "pnpm compile && oclif manifest",
8+
"build": "pnpm compile && oclif manifest && oclif readme",
99
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
1010
"compile": "tsc -b tsconfig.json",
1111
"postpack": "rm -f oclif.manifest.json",

packages/contentstack-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.20.0-beta.0",
55
"author": "Contentstack",
66
"scripts": {
7-
"build": "pnpm compile && oclif manifest",
7+
"build": "pnpm compile && oclif manifest && oclif readme",
88
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
99
"compile": "tsc -b tsconfig.json",
1010
"postpack": "rm -f oclif.manifest.json",

0 commit comments

Comments
 (0)