Skip to content

Commit ae40ec9

Browse files
authored
Merge pull request #2499 from contentstack/development
Next Release
2 parents d65b8c8 + 75413ba commit ae40ec9

File tree

1,071 files changed

+10234
-208853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,071 files changed

+10234
-208853
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
with:
14+
version: 10.28.0
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22.x'
18+
cache: 'pnpm'
19+
- run: pnpm install --no-frozen-lockfile
20+
- run: pnpm -r --sort --workspace-concurrency=1 run build
21+
- run: pnpm run lint

.github/workflows/policy-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
if [ "$license_file_found" = false ]; then
4444
echo "No license file found. Please add a license file to the repository."
4545
exit 1
46-
fi
46+
fi
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release CLI Core (Production)
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v4
12+
with:
13+
version: 10.28.0
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '22.x'
17+
18+
- name: Enable Corepack
19+
run: corepack enable
20+
21+
- name: Install pnpm
22+
run: corepack prepare pnpm@10.28.0 --activate
23+
24+
- name: Clean the repository
25+
run: pnpm run clean:all
26+
27+
- name: Install root dependencies
28+
run: pnpm install --no-frozen-lockfile
29+
30+
- name: Build all packages
31+
run: pnpm -r --sort run build
32+
33+
- name: Reading Configuration
34+
id: release_config
35+
uses: rgarcia-phi/json-to-variables@v1.1.0
36+
with:
37+
filename: .github/config/release.json
38+
prefix: release
39+
40+
- name: Publishing core (Production)
41+
id: publish-core
42+
uses: JS-DevTools/npm-publish@v3
43+
with:
44+
token: ${{ secrets.NPM_TOKEN }}
45+
package: ./packages/contentstack/package.json
46+
tag: latest
47+
48+
- name: Create Core Production Release
49+
id: create_release
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
VERSION: ${{ steps.publish-core.outputs.version }}
53+
run: |
54+
TAG="core@v${VERSION}"
55+
if gh release view "$TAG" &>/dev/null; then
56+
echo "Release $TAG already exists — skipping."
57+
else
58+
gh release create "$TAG" \
59+
--title "Core Production $VERSION" \
60+
--generate-notes
61+
fi
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CLI Production Release Pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch: # This enables manual triggering
7+
8+
jobs:
9+
plugins:
10+
uses: ./.github/workflows/release-production-platform-plugins.yml
11+
secrets: inherit
12+
13+
core:
14+
needs: plugins
15+
uses: ./.github/workflows/release-production-core.yml
16+
secrets: inherit
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Release CLI Platform Plugins
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v4
12+
with:
13+
version: 10.28.0
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '22.x'
17+
18+
- name: Enable Corepack
19+
run: corepack enable
20+
21+
- name: Install pnpm
22+
run: corepack prepare pnpm@10.28.0 --activate
23+
24+
- name: Clean the repository
25+
run: pnpm run clean:all
26+
27+
- name: Install root dependencies
28+
run: pnpm install --no-frozen-lockfile
29+
30+
- name: Build all plugins
31+
run: pnpm -r --sort run build
32+
33+
- name: Reading Configuration
34+
id: release_config
35+
uses: rgarcia-phi/json-to-variables@v1.1.0
36+
with:
37+
filename: .github/config/release.json
38+
prefix: release
39+
40+
# Dev Dependencies
41+
- name: Publishing dev dependencies (Production)
42+
uses: JS-DevTools/npm-publish@v3
43+
with:
44+
token: ${{ secrets.NPM_TOKEN }}
45+
package: ./packages/contentstack-dev-dependencies/package.json
46+
tag: latest
47+
48+
# Utilities
49+
- name: Publishing utilities (Production)
50+
uses: JS-DevTools/npm-publish@v3
51+
with:
52+
token: ${{ secrets.NPM_TOKEN }}
53+
package: ./packages/contentstack-utilities/package.json
54+
tag: latest
55+
56+
# Command
57+
- name: Publishing command (Production)
58+
uses: JS-DevTools/npm-publish@v3
59+
with:
60+
token: ${{ secrets.NPM_TOKEN }}
61+
package: ./packages/contentstack-command/package.json
62+
tag: latest
63+
64+
# Config
65+
- name: Publishing config (Production)
66+
uses: JS-DevTools/npm-publish@v3
67+
with:
68+
token: ${{ secrets.NPM_TOKEN }}
69+
package: ./packages/contentstack-config/package.json
70+
tag: latest
71+
72+
# Auth
73+
- name: Publishing auth (Production)
74+
uses: JS-DevTools/npm-publish@v3
75+
with:
76+
token: ${{ secrets.NPM_TOKEN }}
77+
package: ./packages/contentstack-auth/package.json
78+
tag: latest

0 commit comments

Comments
 (0)