diff --git a/.github/workflows/release-v2-beta-plugins.yml b/.github/workflows/release-v2-beta-plugins.yml index 58c10ac87..fb005bbd2 100644 --- a/.github/workflows/release-v2-beta-plugins.yml +++ b/.github/workflows/release-v2-beta-plugins.yml @@ -135,6 +135,14 @@ jobs: package: ./packages/contentstack-branches/package.json tag: beta + # Apps CLI + - name: Publishing apps-cli (Production) + uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/contentstack-apps-cli/package.json + tag: latest + # Query Export - name: Publishing query-export (Beta) uses: JS-DevTools/npm-publish@v3 @@ -183,6 +191,22 @@ jobs: package: ./packages/contentstack-migrate-rte/package.json access: public tag: beta + # External Migrate + - name: Publishing external-migrate (Production) + uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/contentstack-external-migrate/package.json + tag: latest + + - name: Create Production Release + id: create_release + env: + GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }} + VERSION: ${{ steps.publish-plugins.outputs.version }} + run: | + # Get the previous production release for comparison + PREVIOUS_PROD=$(gh release list --limit 10 | grep -v 'prerelease' | head -1 | cut -f1) # Bulk Operations - name: Publishing bulk-operations (Beta) diff --git a/.talismanrc b/.talismanrc index 789dc0cda..b03f6eed4 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,4 +1,4 @@ fileignoreconfig: - filename: pnpm-lock.yaml - checksum: cdead0797199d22bbc55b9e5b6b86983f28eb760fabe5e1f2d5139c4456a9131 + checksum: 7ec6345eb15ed0be001753ee49733421a8a07096dc8a18465cdad1b82562fed8 version: '1.0' diff --git a/packages/contentstack-apps-cli/src/util/common-utils.ts b/packages/contentstack-apps-cli/src/util/common-utils.ts index f72dcb1c4..b9f68def4 100644 --- a/packages/contentstack-apps-cli/src/util/common-utils.ts +++ b/packages/contentstack-apps-cli/src/util/common-utils.ts @@ -120,7 +120,7 @@ function fetchAppInstallations( flags: FlagInput, orgUid: string, options: MarketPlaceOptions -) { +): Promise { const { marketplaceSdk } = options; const app: any = flags["app-uid"]; return marketplaceSdk @@ -218,7 +218,7 @@ function uninstallApp( orgUid: string, options: MarketPlaceOptions, installationUid: string -) { +): Promise { const { marketplaceSdk } = options; // const app: any = flags["app-uid"]; return marketplaceSdk diff --git a/packages/contentstack-content-type/README.md b/packages/contentstack-content-type/README.md index ddde8811b..8e5615c93 100644 --- a/packages/contentstack-content-type/README.md +++ b/packages/contentstack-content-type/README.md @@ -54,5 +54,181 @@ $ csdx content-type:details -a "management token" -c "content type" --no-path # Commands +* [`csdx content-type:audit`](#csdx-content-typeaudit) +* [`csdx content-type:compare`](#csdx-content-typecompare) +* [`csdx content-type:compare-remote`](#csdx-content-typecompare-remote) +* [`csdx content-type:details`](#csdx-content-typedetails) +* [`csdx content-type:diagram`](#csdx-content-typediagram) +* [`csdx content-type:list`](#csdx-content-typelist) +## `csdx content-type:audit` + +Display recent changes to a Content Type + +``` +USAGE + $ csdx content-type:audit -c [-s | -a | -a ] [-k | | ] + +FLAGS + -a, --alias= Alias of the management token + -a, --token-alias= Management token alias + -c, --content-type= (required) Content Type UID + -k, --stack-api-key= Stack API Key + -s, --stack= Stack UID + +DESCRIPTION + Display recent changes to a Content Type + +EXAMPLES + $ csdx content-type:audit --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page" + + $ csdx content-type:audit --alias "management token" --content-type "home_page" +``` + +_See code: [src/commands/content-type/audit.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/audit.ts)_ + +## `csdx content-type:compare` + +Compare two Content Type versions + +``` +USAGE + $ csdx content-type:compare -c [-s | -a ] [-k | ] [-a ] [-l -r ] + +FLAGS + -a, --alias= Alias of the management token + -a, --token-alias= Management token alias + -c, --content-type= (required) Content Type UID + -k, --stack-api-key= Stack API Key + -l, --left= Content Type version, i.e. prev version + -r, --right= Content Type version, i.e. later version + -s, --stack= Stack UID + +DESCRIPTION + Compare two Content Type versions + +EXAMPLES + $ csdx content-type:compare --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page" + + $ csdx content-type:compare --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page" --left # --right # + + $ csdx content-type:compare --alias "management token" --content-type "home_page" --left # --right # +``` + +_See code: [src/commands/content-type/compare.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/compare.ts)_ + +## `csdx content-type:compare-remote` + +compare two Content Types on different Stacks + +``` +USAGE + $ csdx content-type:compare-remote (-o -r ) -c + +FLAGS + -c, --content-type= (required) Content Type UID + -o, --origin-stack= (required) Origin Stack API Key + -r, --remote-stack= (required) Remote Stack API Key + +DESCRIPTION + compare two Content Types on different Stacks + +EXAMPLES + $ csdx content-type:compare-remote --origin-stack "xxxxxxxxxxxxxxxxxxx" --remote-stack "xxxxxxxxxxxxxxxxxxx" -content-type "home_page" +``` + +_See code: [src/commands/content-type/compare-remote.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/compare-remote.ts)_ + +## `csdx content-type:details` + +Display Content Type details + +``` +USAGE + $ csdx content-type:details -c [-s | -a ] [-k | ] [-a ] [-p] + +FLAGS + -a, --alias= Alias of the management token + -a, --token-alias= Management token alias + -c, --content-type= (required) Content Type UID + -k, --stack-api-key= Stack API Key + -p, --[no-]path show path column + -s, --stack= Stack UID + +DESCRIPTION + Display Content Type details + +EXAMPLES + $ csdx content-type:details --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page" + + $ csdx content-type:details --alias "management token" --content-type "home_page" + + $ csdx content-type:details --alias "management token" --content-type "home_page" --no-path +``` + +_See code: [src/commands/content-type/details.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/details.ts)_ + +## `csdx content-type:diagram` + +Create a visual diagram of a Stack's Content Types + +``` +USAGE + $ csdx content-type:diagram -o -d portrait|landscape -t svg|dot [-s | -a | -a ] [-k + | | ] + +FLAGS + -a, --alias= Alias of the management token + -a, --token-alias= Management token alias + -d, --direction=