Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 8 additions & 106 deletions .github/workflows/release-v1-beta-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release CLI Plugins (v1 Beta)

on:
push:
branches: [disable-v1-beta]
branches: [v1-beta]

jobs:
build:
Expand All @@ -22,8 +22,14 @@ jobs:
- name: Install pnpm
run: corepack prepare pnpm@10.28.0 --activate

- name: Clean the repository
run: pnpm run clean:all

- name: Install root dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build all plugins
run: pnpm -r --sort run build

- name: Reading Configuration
id: release_config
Expand All @@ -33,203 +39,99 @@ jobs:
prefix: release

# Variants
- name: Installing dependencies of variants
id: variants-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
working-directory: ./packages/contentstack-variants
run: npm install
- name: Compiling variants
if: ${{ steps.variants-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-variants
run: npm run prepack
- name: Publishing variants (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.variants-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-variants/package.json
access: public
tag: beta

# Export
- name: Installing dependencies of export
id: export-installation
if: ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}}
working-directory: ./packages/contentstack-export
run: npm install
- name: Compiling export
if: ${{ steps.export-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-export
run: npm run prepack
- name: Publishing export (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.export-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-export/package.json
tag: beta

# Audit
- name: Installing dependencies of audit
id: audit-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_audit == 'true'}}
working-directory: ./packages/contentstack-audit
run: npm install
- name: Compiling audit
if: ${{ steps.audit-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-audit
run: npm run prepack
- name: Publishing audit (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.audit-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-audit/package.json
access: public
tag: beta

# Import
- name: Installing dependencies of import
id: import-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}}
working-directory: ./packages/contentstack-import
run: npm install
- name: Compiling import
if: ${{ steps.import-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-import
run: npm run prepack
- name: Publishing import (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.import-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-import/package.json
tag: beta

# Clone
- name: Installing dependencies of clone
id: clone-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_clone == 'true'}}
working-directory: ./packages/contentstack-clone
run: npm install
- name: Publishing clone (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.clone-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-clone/package.json
tag: beta

# Import Setup
- name: Installing dependencies of import-setup
id: import-setup-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_import_setup == 'true'}}
working-directory: ./packages/contentstack-import-setup
run: npm install
- name: Compiling import-setup
if: ${{ steps.import-setup-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-import-setup
run: npm run prepack
- name: Publishing import-setup (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.import-setup-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-import-setup/package.json
access: public
tag: beta

# Export to CSV
- name: Installing dependencies of export to csv
id: export-to-csv-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}}
working-directory: ./packages/contentstack-export-to-csv
run: npm install
- name: Publishing export to csv (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.export-to-csv-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-export-to-csv/package.json
tag: beta

# Migration
- name: Installing dependencies of migration
id: migration-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_migration == 'true'}}
working-directory: ./packages/contentstack-migration
run: npm install
- name: Publishing migration (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.migration-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-migration/package.json
tag: beta

# Seed
- name: Installing dependencies of seed
id: seed-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_seed == 'true'}}
working-directory: ./packages/contentstack-seed
run: npm install
- name: Compiling seed
if: ${{ steps.seed-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-seed
run: npm run prepack
- name: Publishing seed (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.seed-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-seed/package.json
tag: beta

# Bootstrap
- name: Installing dependencies of bootstrap
id: bootstrap-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_bootstrap == 'true'}}
working-directory: ./packages/contentstack-bootstrap
run: npm install
- name: Compiling bootstrap
if: ${{ steps.bootstrap-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-bootstrap
run: npm run prepack
- name: Publishing bootstrap (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.bootstrap-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-bootstrap/package.json
tag: beta

# Bulk Publish
- name: Installing dependencies of bulk publish
id: bulk-publish-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_bulk-publish == 'true'}}
working-directory: ./packages/contentstack-bulk-publish
run: npm install
- name: Publishing bulk publish (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.bulk-publish-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-bulk-publish/package.json
tag: beta

# Branches
- name: Installing dependencies of branches
id: branches-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_branches == 'true'}}
working-directory: ./packages/contentstack-branches
run: npm install
- name: Compiling branches
if: ${{ steps.branches-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-branches
run: npm run prepack
- name: Publishing branches (Beta)
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.branches-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-branches/package.json
Expand Down
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fileignoreconfig:
- filename: package-lock.json
checksum: c91b9e5fba1c84c0b6de15ad2f8cce698a5c781c9db31bebb7a3ad63ee88d9e1
- filename: pnpm-lock.yaml
checksum: 1b80993eacbc8bf861883d3e5382e6c708e68d4c0b881e31251999285e772e9b
checksum: f71f23aaad4ba997741b6c3cbc89822bd92e8b0c66c96bc30c199e2cbeaaad77
- filename: packages/contentstack-bootstrap/src/bootstrap/utils.ts
checksum: 6e6fb00bb11b03141e5ad27eeaa4af9718dc30520c3e73970bc208cc0ba2a7d2
- filename: .husky/pre-commit
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@
},
"private": true,
"scripts": {
"clean": "pnpm -r --filter './packages/*' run clean",
"clean:packages": "pnpm -r --filter './packages/*' run clean:packages",
"build": "pnpm -r --filter './packages/*' run build",
"test": "pnpm -r --filter './packages/*' run test",
"prepack": "pnpm -r --filter './packages/*' run prepack",
"bootstrap": "pnpm install",
"clean:modules": "rm -rf node_modules packages/**/node_modules",
"clean:lock": "rm -f pnpm-lock.yaml",
"clean:all": "pnpm store prune && rm -rf node_modules && pnpm run clean",
"clean:all": "pnpm store prune && rm -rf node_modules && pnpm run clean:packages",
"setup": "pnpm run clean:all && pnpm run bootstrap && pnpm run build",
"prepare": "npx husky && chmod +x .husky/pre-commit"
"prepare": "npx husky && chmod +x .husky/pre-commit",
"update:lockfile": "pnpm install --lockfile-only"
},
"license": "MIT",
"packageManager": "pnpm@10.28.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-audit",
"version": "1.18.0",
"version": "1.19.0-beta.0",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand All @@ -18,8 +18,8 @@
"/oclif.manifest.json"
],
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.4",
"@contentstack/cli-command": "~1.8.0-beta.0",
"@contentstack/cli-utilities": "~1.18.0-beta.0",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"@oclif/plugin-plugins": "^5.4.54",
Expand Down Expand Up @@ -66,15 +66,15 @@
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-audit/<%- commandPath %>"
},
"scripts": {
"build": "pnpm compile",
"build": "pnpm compile && oclif manifest && oclif readme",
"lint": "eslint . --ext .ts --config .eslintrc",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "npm run lint",
"compile": "shx rm -rf lib tsconfig.tsbuildinfo && tsc -b",
"compile": "tsc -b tsconfig.json",
"prepack": "pnpm compile && oclif manifest && oclif readme",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./lib ./node_modules .tsbuildinfo oclif.manifest.json",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"",
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.ts\""
},
Expand Down
16 changes: 8 additions & 8 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@contentstack/cli-cm-bootstrap",
"description": "Bootstrap contentstack apps",
"version": "1.18.4",
"version": "1.19.0-beta.0",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
"build": "pnpm compile",
"clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
"build": "pnpm compile && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"postpack": "rm -f oclif.manifest.json",
"prepack": "pnpm compile && oclif manifest && oclif readme",
Expand All @@ -16,15 +16,15 @@
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
},
"dependencies": {
"@contentstack/cli-cm-seed": "~1.14.3",
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-config": "~1.19.0",
"@contentstack/cli-utilities": "~1.17.4",
"@contentstack/cli-cm-seed": "~1.15.0-beta.0",
"@contentstack/cli-command": "~1.8.0-beta.0",
"@contentstack/cli-config": "~1.20.0-beta.0",
"@contentstack/cli-utilities": "~1.18.0-beta.0",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.37",
"inquirer": "8.2.7",
"mkdirp": "^1.0.4",
"tar": "^7.5.7"
"tar": "^7.5.10"
},
"devDependencies": {
"@oclif/test": "^4.1.13",
Expand Down
10 changes: 5 additions & 5 deletions packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@contentstack/cli-cm-branches",
"description": "Contentstack CLI plugin to do branches operations",
"version": "1.6.3",
"version": "1.7.0-beta.0",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-command": "~1.8.0-beta.0",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"@contentstack/cli-utilities": "~1.17.4",
"@contentstack/cli-utilities": "~1.18.0-beta.0",
"chalk": "^4.1.2",
"just-diff": "^6.0.2",
"lodash": "^4.17.23"
Expand All @@ -30,8 +30,8 @@
"typescript": "^4.9.5"
},
"scripts": {
"build": "pnpm compile",
"clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
"build": "pnpm compile && oclif manifest && oclif readme",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"postpack": "rm -f oclif.manifest.json",
"prepack": "pnpm compile && oclif manifest && oclif readme",
Expand Down
9 changes: 5 additions & 4 deletions packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.10.7",
"version": "1.11.0-beta.0",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-config": "~1.19.0",
"@contentstack/cli-utilities": "~1.17.4",
"@contentstack/cli-command": "~1.8.0-beta.0",
"@contentstack/cli-config": "~1.20.0-beta.0",
"@contentstack/cli-utilities": "~1.18.0-beta.0",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
Expand Down Expand Up @@ -92,6 +92,7 @@
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"prepack": "oclif manifest && oclif readme",
"build": "oclif manifest && oclif readme",
"test:unit": "mocha --reporter spec --forbid-only \"test/unit/**/*.test.js\"",
"posttest": "eslint .",
"version": "oclif readme && git add README.md",
Expand Down
Loading
Loading