Skip to content

Commit 84063d7

Browse files
committed
follow #366 discussions current proposal
1 parent 8bd063a commit 84063d7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Diff for: .github/workflows/on-release-beta.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release
22
on:
33
push:
44
branches:
5-
- main
5+
- feat/cicd/prodWorkflow
66
workflow_dispatch: {}
77
jobs:
88
publish:
@@ -39,9 +39,13 @@ jobs:
3939
git config --global user.name 'github-actions[bot]'
4040
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4141
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
42-
npx lerna version --conventional-commits --conventional-prerelease --preid beta --create-release github --force-publish=* --yes
4342
44-
npx lerna publish from-git --no-verify-access --yes
43+
# Follow https://github.com/lerna/lerna/issues/2248#issuecomment-527882069 recommendation
44+
npx lerna version --conventional-commits --conventional-prerelease --force-publish=* --yes --no-changelog
45+
git tag -d $(git describe --abbrev=0)
46+
git push
47+
48+
npx lerna publish from-package --no-verify-access --yes
4549
#########################
4650
# Generate documentation
4751
#########################

Diff for: .github/workflows/on-release-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
git config --global user.name 'github-actions[bot]'
3737
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3838
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
39-
npx lerna version --conventional-commits --create-release github --force-publish=* --yes
39+
npx lerna version --conventional-commits --conventional-graduate --create-release github --force-publish=* --yes
4040
npx lerna publish from-git --no-verify-access --yes
4141
#########################
4242
# Generate documentation

0 commit comments

Comments
 (0)