@@ -29,20 +29,20 @@ version() {
2929
3030 if " ${DRY_RELEASE} " ; then
3131 printf " %s\n" " Dry releasing"
32- lerna version --conventional-commits --no-commit-hooks --no-git-tag-version --no-push --allow-branch=" ${GIT_BRANCH} " --yes
32+ node_modules/.bin/ lerna version --conventional-commits --no-commit-hooks --no-git-tag-version --no-push --allow-branch=" ${GIT_BRANCH} " --yes
3333 else
3434 printf " %s\n" " Releasing"
35- lerna version --conventional-commits --no-commit-hooks --no-git-tag-version --no-push --yes
35+ node_modules/.bin/ lerna version --conventional-commits --no-commit-hooks --no-git-tag-version --no-push --yes
3636 fi
3737}
3838
3939get_changed_packages () {
40- lerna changed --all -p -l
40+ node_modules/.bin/ lerna changed --all -p -l
4141}
4242
4343get_release_name () {
4444 seed=" $1 "
45- release_name=$( npx @ovh-ux/codename-generator codename-generator -s " $seed " | sed ' s/ /-/g ' | tr ' [:upper:] ' ' [:lower:] ' )
45+ release_name=$( node scripts/release/index.js " $seed " )
4646 latest_release=" $( git tag -l " ${release_name} *" --sort=taggerdate | tail -1) "
4747 if [ -z " $latest_release " ]; then
4848 printf " %s\n" " $release_name "
@@ -58,13 +58,13 @@ get_release_name() {
5858}
5959
6060create_release_note () (
61- conventional-changelog -p angular -n scripts/release/changelog.js -k " $1 " --commit-path " $1 " -l " $2 "
61+ node_modules/.bin/ conventional-changelog -p angular -n scripts/release/changelog.js -k " $1 " --commit-path " $1 " -l " $2 "
6262)
6363
6464push_and_release () {
6565 printf " %s\n" " Commit and tag"
6666 git add .
67- git commit -s -m " release(*) : $1 "
67+ git commit -s -m " release: $1 "
6868 git tag -a -m " release: $1 " " $1 "
6969 if ! " ${DRY_RELEASE} " ; then
7070 gh config set prompt disabled
@@ -148,8 +148,8 @@ main() {
148148
149149 # Remove package specific tags
150150 clean_tags
151- worker export RELEASE_NOTE " ${RELEASE_NOTE} "
152- worker export NEXT_TAG " ${ next_tag} "
151+
152+ push_and_release " $ next_tag"
153153}
154154
155155main " ${@ } "
0 commit comments