File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: release
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - feat/cicd/prodWorkflow
6
6
workflow_dispatch : {}
7
7
jobs :
8
8
publish :
39
39
git config --global user.name 'github-actions[bot]'
40
40
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
41
41
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
43
42
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
45
49
# ########################
46
50
# Generate documentation
47
51
# ########################
Original file line number Diff line number Diff line change 36
36
git config --global user.name 'github-actions[bot]'
37
37
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
38
38
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
40
40
npx lerna publish from-git --no-verify-access --yes
41
41
# ########################
42
42
# Generate documentation
You can’t perform that action at this time.
0 commit comments