Skip to content

Commit c4a0f04

Browse files
authored
Merge pull request #2709 from contentstack/chore/v1-legacy-release-workflow
chore: add v1-legacy release workflows
2 parents 34862fc + 0a153d1 commit c4a0f04

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/release-production-core.yml renamed to .github/workflows/release-v1-legacy-core.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release CLI Core (Production)
1+
name: Release CLI Core v1-Legacy
22

33
on:
44
workflow_call:
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
token: ${{ secrets.NPM_TOKEN }}
4545
package: ./packages/contentstack/package.json
46-
tag: v1
46+
tag: v1-x
4747

4848
- name: Create Core Production Release
4949
id: create_release
@@ -56,6 +56,7 @@ jobs:
5656
echo "Release $TAG already exists — skipping."
5757
else
5858
gh release create "$TAG" \
59-
--title "Core Production $VERSION" \
60-
--generate-notes
59+
--title "Core v1-Legacy $VERSION" \
60+
--generate-notes \
61+
--latest=false
6162
fi

.github/workflows/release-production-platform-plugins.yml renamed to .github/workflows/release-v1-legacy-platform-plugins.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release CLI Platform Plugins
1+
name: Release CLI Platform Plugins v1-Legacy
22

33
on:
44
workflow_call:
@@ -43,28 +43,28 @@ jobs:
4343
with:
4444
token: ${{ secrets.NPM_TOKEN }}
4545
package: ./packages/contentstack-utilities/package.json
46-
tag: v1
46+
tag: v1-x
4747

4848
# Command
4949
- name: Publishing command (Production)
5050
uses: JS-DevTools/npm-publish@v3
5151
with:
5252
token: ${{ secrets.NPM_TOKEN }}
5353
package: ./packages/contentstack-command/package.json
54-
tag: v1
54+
tag: v1-x
5555

5656
# Config
5757
- name: Publishing config (Production)
5858
uses: JS-DevTools/npm-publish@v3
5959
with:
6060
token: ${{ secrets.NPM_TOKEN }}
6161
package: ./packages/contentstack-config/package.json
62-
tag: v1
62+
tag: v1-x
6363

6464
# Auth
6565
- name: Publishing auth (Production)
6666
uses: JS-DevTools/npm-publish@v3
6767
with:
6868
token: ${{ secrets.NPM_TOKEN }}
6969
package: ./packages/contentstack-auth/package.json
70-
tag: v1
70+
tag: v1-x
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CLI Production Release Pipeline
1+
name: CLI v1-Legacy Release
22

33
on:
44
push:
@@ -7,10 +7,10 @@ on:
77

88
jobs:
99
plugins:
10-
uses: ./.github/workflows/release-production-platform-plugins.yml
10+
uses: ./.github/workflows/release-v1-legacy-platform-plugins.yml
1111
secrets: inherit
1212

1313
core:
1414
needs: plugins
15-
uses: ./.github/workflows/release-production-core.yml
15+
uses: ./.github/workflows/release-v1-legacy-core.yml
1616
secrets: inherit

0 commit comments

Comments
 (0)