Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
941f9e4
fix: lockfile updated
cs-raj Mar 2, 2026
2ee4081
Merge pull request #2441 from contentstack/fix/v2-beta-release
cs-raj Mar 2, 2026
b081bd1
updated release file
shafeeqd959 Mar 9, 2026
eb137eb
updated versions
shafeeqd959 Mar 9, 2026
1236504
core version bump
shafeeqd959 Mar 9, 2026
2511dc3
corrected versions
shafeeqd959 Mar 9, 2026
fed63c9
merged changes
shafeeqd959 Mar 9, 2026
8f1b358
merged changes
shafeeqd959 Mar 9, 2026
5b12146
bumped core version
shafeeqd959 Mar 9, 2026
1cf1dac
updated readme
shafeeqd959 Mar 9, 2026
dc3c434
Merge pull request #2430 from contentstack/v2-dev
harshithad0703 Mar 9, 2026
cd705ea
bumped versions
shafeeqd959 Mar 9, 2026
258171c
Merge pull request #2449 from contentstack/v2-core-version-bump
shafeeqd959 Mar 9, 2026
9cee3d1
Merge pull request #2450 from contentstack/v2-beta
shafeeqd959 Mar 9, 2026
d5ba8d1
fixed workflow
shafeeqd959 Mar 11, 2026
a52a2f5
merged latest changes
shafeeqd959 Mar 11, 2026
7d236dc
merged latest changes
shafeeqd959 Mar 11, 2026
6b2e10d
merged latest changes
shafeeqd959 Mar 11, 2026
13a27f1
fixed workflow
shafeeqd959 Mar 12, 2026
561a510
fixed release workflow
shafeeqd959 Mar 12, 2026
aa873f1
Merge pull request #2454 from contentstack/fix-v2/DX-5344
shafeeqd959 Mar 12, 2026
3399d2e
Merge branch 'v2-dev' into v2-dev-bugfix
cs-raj Mar 13, 2026
8840e70
merged latest changes
shafeeqd959 Mar 13, 2026
c995a74
Merge pull request #2461 from contentstack/v2-beta-latest
shafeeqd959 Mar 13, 2026
6c26a72
Merge branch 'v2-dev' into fix/v2-dev-bugfix
cs-raj Mar 13, 2026
2a6288a
updated lock file
cs-raj Mar 13, 2026
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
42 changes: 17 additions & 25 deletions .github/workflows/release-v2-beta-core.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release CLI Core (v2 Beta)

on:
push:
branches: [v2-beta]
workflow_call:

jobs:
build:
Expand All @@ -11,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 7
version: 10.28.0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
Expand All @@ -20,10 +19,16 @@ jobs:
run: corepack enable

- name: Install pnpm
run: corepack prepare pnpm@7 --activate
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 packages
run: pnpm -r --sort run build

- name: Reading Configuration
id: release_config
Expand All @@ -32,39 +37,26 @@ jobs:
filename: .github/config/release.json
prefix: release

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

- name: Create Core Beta Release
if: ${{ steps.publish-core.conclusion == 'success' }}
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.publish-core.outputs.version }}
run: |
# Look for the last release specifically starting with the 'core@v' prefix
PREVIOUS_BETA=$(gh release list --limit 50 | grep 'core@v' | grep 'beta' | head -1 | cut -f1)

if [ -n "$PREVIOUS_BETA" ]; then
# Compare current core version against previous core version
gh release create "core@v$VERSION" --title "Core Beta $VERSION" --notes-from-tag "$PREVIOUS_BETA" --prerelease
TAG="core@v${VERSION}"
if gh release view "$TAG" &>/dev/null; then
echo "Release $TAG already exists — skipping."
else
# Fallback if this is the first core@v release
gh release create "core@v$VERSION" --title "Core Beta $VERSION" --generate-notes --prerelease
gh release create "$TAG" \
--title "Core Beta $VERSION" \
--generate-notes \
--prerelease
fi
102 changes: 10 additions & 92 deletions .github/workflows/release-v2-beta-platform-plugins.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release CLI Platform Plugins (v2 Beta)

on:
push:
branches: [v2-beta]
workflow_call:

jobs:
build:
Expand All @@ -11,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 7
version: 10.28.0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
Expand All @@ -20,10 +19,16 @@ jobs:
run: corepack enable

- name: Install pnpm
run: corepack prepare pnpm@7 --activate
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,128 +38,41 @@ jobs:
prefix: release

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

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

# 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

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

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

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

- name: Create Platform Plugins Beta Release
# Adjust the ID below to match your actual publishing step ID for plugins
if: ${{ steps.publish-plugins.conclusion == 'success' }}
id: create_release_plugins
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Extract version from the output of your plugin publish step
VERSION: ${{ steps.publish-plugins.outputs.version }}
run: |
# Look for the last release specifically starting with 'plugins@v'
PREVIOUS_BETA=$(gh release list --limit 50 | grep 'platform-plugins@v' | grep 'beta' | head -1 | cut -f1)

if [ -n "$PREVIOUS_BETA" ]; then
gh release create "platform-plugins@v$VERSION" --title "Platform Plugins Beta $VERSION" --notes-from-tag "$PREVIOUS_BETA" --prerelease
else
gh release create "platform-plugins@v$VERSION" --title "Platform Plugins Beta $VERSION" --generate-notes --prerelease
fi
Loading
Loading