Skip to content

Commit 464beed

Browse files
committed
updated scripts and release yml
1 parent 46073b2 commit 464beed

12 files changed

Lines changed: 18 additions & 115 deletions

File tree

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

Lines changed: 7 additions & 105 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,203 +39,99 @@ jobs:
3339
prefix: release
3440

3541
# Variants
36-
- name: Installing dependencies of variants
37-
id: variants-installation
38-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
39-
working-directory: ./packages/contentstack-variants
40-
run: npm install
41-
- name: Compiling variants
42-
if: ${{ steps.variants-installation.conclusion == 'success' }}
43-
working-directory: ./packages/contentstack-variants
44-
run: npm run prepack
4542
- name: Publishing variants (Beta)
4643
uses: JS-DevTools/npm-publish@v3
47-
if: ${{ steps.variants-installation.conclusion == 'success' }}
4844
with:
4945
token: ${{ secrets.NPM_TOKEN }}
5046
package: ./packages/contentstack-variants/package.json
5147
access: public
5248
tag: beta
5349

5450
# Export
55-
- name: Installing dependencies of export
56-
id: export-installation
57-
if: ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}}
58-
working-directory: ./packages/contentstack-export
59-
run: npm install
60-
- name: Compiling export
61-
if: ${{ steps.export-installation.conclusion == 'success' }}
62-
working-directory: ./packages/contentstack-export
63-
run: npm run prepack
6451
- name: Publishing export (Beta)
6552
uses: JS-DevTools/npm-publish@v3
66-
if: ${{ steps.export-installation.conclusion == 'success' }}
6753
with:
6854
token: ${{ secrets.NPM_TOKEN }}
6955
package: ./packages/contentstack-export/package.json
7056
tag: beta
7157

7258
# Audit
73-
- name: Installing dependencies of audit
74-
id: audit-installation
75-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_audit == 'true'}}
76-
working-directory: ./packages/contentstack-audit
77-
run: npm install
78-
- name: Compiling audit
79-
if: ${{ steps.audit-installation.conclusion == 'success' }}
80-
working-directory: ./packages/contentstack-audit
81-
run: npm run prepack
8259
- name: Publishing audit (Beta)
8360
uses: JS-DevTools/npm-publish@v3
84-
if: ${{ steps.audit-installation.conclusion == 'success' }}
8561
with:
8662
token: ${{ secrets.NPM_TOKEN }}
8763
package: ./packages/contentstack-audit/package.json
8864
access: public
8965
tag: beta
9066

9167
# Import
92-
- name: Installing dependencies of import
93-
id: import-installation
94-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}}
95-
working-directory: ./packages/contentstack-import
96-
run: npm install
97-
- name: Compiling import
98-
if: ${{ steps.import-installation.conclusion == 'success' }}
99-
working-directory: ./packages/contentstack-import
100-
run: npm run prepack
10168
- name: Publishing import (Beta)
10269
uses: JS-DevTools/npm-publish@v3
103-
if: ${{ steps.import-installation.conclusion == 'success' }}
10470
with:
10571
token: ${{ secrets.NPM_TOKEN }}
10672
package: ./packages/contentstack-import/package.json
10773
tag: beta
10874

10975
# Clone
110-
- name: Installing dependencies of clone
111-
id: clone-installation
112-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_clone == 'true'}}
113-
working-directory: ./packages/contentstack-clone
114-
run: npm install
11576
- name: Publishing clone (Beta)
11677
uses: JS-DevTools/npm-publish@v3
117-
if: ${{ steps.clone-installation.conclusion == 'success' }}
11878
with:
11979
token: ${{ secrets.NPM_TOKEN }}
12080
package: ./packages/contentstack-clone/package.json
12181
tag: beta
12282

12383
# Import Setup
124-
- name: Installing dependencies of import-setup
125-
id: import-setup-installation
126-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_import_setup == 'true'}}
127-
working-directory: ./packages/contentstack-import-setup
128-
run: npm install
129-
- name: Compiling import-setup
130-
if: ${{ steps.import-setup-installation.conclusion == 'success' }}
131-
working-directory: ./packages/contentstack-import-setup
132-
run: npm run prepack
13384
- name: Publishing import-setup (Beta)
13485
uses: JS-DevTools/npm-publish@v3
135-
if: ${{ steps.import-setup-installation.conclusion == 'success' }}
13686
with:
13787
token: ${{ secrets.NPM_TOKEN }}
13888
package: ./packages/contentstack-import-setup/package.json
13989
access: public
14090
tag: beta
14191

14292
# Export to CSV
143-
- name: Installing dependencies of export to csv
144-
id: export-to-csv-installation
145-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}}
146-
working-directory: ./packages/contentstack-export-to-csv
147-
run: npm install
14893
- name: Publishing export to csv (Beta)
14994
uses: JS-DevTools/npm-publish@v3
150-
if: ${{ steps.export-to-csv-installation.conclusion == 'success' }}
15195
with:
15296
token: ${{ secrets.NPM_TOKEN }}
15397
package: ./packages/contentstack-export-to-csv/package.json
15498
tag: beta
15599

156100
# Migration
157-
- name: Installing dependencies of migration
158-
id: migration-installation
159-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_migration == 'true'}}
160-
working-directory: ./packages/contentstack-migration
161-
run: npm install
162101
- name: Publishing migration (Beta)
163102
uses: JS-DevTools/npm-publish@v3
164-
if: ${{ steps.migration-installation.conclusion == 'success' }}
165103
with:
166104
token: ${{ secrets.NPM_TOKEN }}
167105
package: ./packages/contentstack-migration/package.json
168106
tag: beta
169107

170108
# Seed
171-
- name: Installing dependencies of seed
172-
id: seed-installation
173-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_seed == 'true'}}
174-
working-directory: ./packages/contentstack-seed
175-
run: npm install
176-
- name: Compiling seed
177-
if: ${{ steps.seed-installation.conclusion == 'success' }}
178-
working-directory: ./packages/contentstack-seed
179-
run: npm run prepack
180109
- name: Publishing seed (Beta)
181110
uses: JS-DevTools/npm-publish@v3
182-
if: ${{ steps.seed-installation.conclusion == 'success' }}
183111
with:
184112
token: ${{ secrets.NPM_TOKEN }}
185113
package: ./packages/contentstack-seed/package.json
186114
tag: beta
187115

188116
# Bootstrap
189-
- name: Installing dependencies of bootstrap
190-
id: bootstrap-installation
191-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_bootstrap == 'true'}}
192-
working-directory: ./packages/contentstack-bootstrap
193-
run: npm install
194-
- name: Compiling bootstrap
195-
if: ${{ steps.bootstrap-installation.conclusion == 'success' }}
196-
working-directory: ./packages/contentstack-bootstrap
197-
run: npm run prepack
198117
- name: Publishing bootstrap (Beta)
199118
uses: JS-DevTools/npm-publish@v3
200-
if: ${{ steps.bootstrap-installation.conclusion == 'success' }}
201119
with:
202120
token: ${{ secrets.NPM_TOKEN }}
203121
package: ./packages/contentstack-bootstrap/package.json
204122
tag: beta
205123

206124
# Bulk Publish
207-
- name: Installing dependencies of bulk publish
208-
id: bulk-publish-installation
209-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_bulk-publish == 'true'}}
210-
working-directory: ./packages/contentstack-bulk-publish
211-
run: npm install
212125
- name: Publishing bulk publish (Beta)
213126
uses: JS-DevTools/npm-publish@v3
214-
if: ${{ steps.bulk-publish-installation.conclusion == 'success' }}
215127
with:
216128
token: ${{ secrets.NPM_TOKEN }}
217129
package: ./packages/contentstack-bulk-publish/package.json
218130
tag: beta
219131

220132
# Branches
221-
- name: Installing dependencies of branches
222-
id: branches-installation
223-
if: ${{env.release_releaseAll == 'true' || env.release_plugins_branches == 'true'}}
224-
working-directory: ./packages/contentstack-branches
225-
run: npm install
226-
- name: Compiling branches
227-
if: ${{ steps.branches-installation.conclusion == 'success' }}
228-
working-directory: ./packages/contentstack-branches
229-
run: npm run prepack
230133
- name: Publishing branches (Beta)
231134
uses: JS-DevTools/npm-publish@v3
232-
if: ${{ steps.branches-installation.conclusion == 'success' }}
233135
with:
234136
token: ${{ secrets.NPM_TOKEN }}
235137
package: ./packages/contentstack-branches/package.json

packages/contentstack-audit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-audit/<%- commandPath %>"
6767
},
6868
"scripts": {
69-
"build": "pnpm compile && oclif manifest",
69+
"build": "pnpm compile && oclif manifest && oclif readme",
7070
"lint": "eslint . --ext .ts --config .eslintrc",
7171
"postpack": "shx rm -f oclif.manifest.json",
7272
"posttest": "npm run lint",

packages/contentstack-bootstrap/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-branches/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"typescript": "^4.9.5"
3131
},
3232
"scripts": {
33-
"build": "pnpm compile && oclif manifest",
33+
"build": "pnpm compile && oclif manifest && oclif readme",
3434
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
3535
"compile": "tsc -b tsconfig.json",
3636
"postpack": "rm -f oclif.manifest.json",

packages/contentstack-bulk-publish/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"scripts": {
9393
"postpack": "rm -f oclif.manifest.json",
9494
"prepack": "oclif manifest && oclif readme",
95+
"build": "oclif manifest && oclif readme",
9596
"test:unit": "mocha --reporter spec --forbid-only \"test/unit/**/*.test.js\"",
9697
"posttest": "eslint .",
9798
"version": "oclif readme && git add README.md",

packages/contentstack-clone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"repository": "https://github.com/contentstack/cli",
6363
"scripts": {
64-
"build": "pnpm compile && oclif manifest",
64+
"build": "pnpm compile && oclif manifest && oclif readme",
6565
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
6666
"compile": "tsc -b tsconfig.json",
6767
"postpack": "rm -f oclif.manifest.json",

packages/contentstack-export-to-csv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"repository": "https://github.com/contentstack/cli",
6767
"scripts": {
68-
"build": "pnpm compile && oclif manifest",
68+
"build": "pnpm compile && oclif manifest && oclif readme",
6969
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
7070
"compile": "tsc -b tsconfig.json",
7171
"lint": "eslint src/**/*.ts",

packages/contentstack-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"typescript": "^4.9.5"
4747
},
4848
"scripts": {
49-
"build": "pnpm compile && oclif manifest",
49+
"build": "pnpm compile && oclif manifest && oclif readme",
5050
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
5151
"compile": "tsc -b tsconfig.json",
5252
"postpack": "rm -f oclif.manifest.json",

packages/contentstack-import-setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"typescript": "^4.9.5"
4141
},
4242
"scripts": {
43-
"build": "pnpm compile && oclif manifest",
43+
"build": "pnpm compile && oclif manifest && oclif readme",
4444
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
4545
"compile": "tsc -b tsconfig.json",
4646
"postpack": "rm -f oclif.manifest.json",

packages/contentstack-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "^4.9.5"
4646
},
4747
"scripts": {
48-
"build": "pnpm compile && oclif manifest",
48+
"build": "pnpm compile && oclif manifest && oclif readme",
4949
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
5050
"compile": "tsc -b tsconfig.json",
5151
"postpack": "rm -f oclif.manifest.json",

0 commit comments

Comments
 (0)