Skip to content

Commit 634e2eb

Browse files
authored
sync(*): master to develop
sync(*): master to develop
2 parents d0e7fa9 + 91a2ca2 commit 634e2eb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/release/release.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3939
get_changed_packages() {
40-
lerna changed --all -p -l
40+
node_modules/.bin/lerna changed --all -p -l
4141
}
4242

4343
get_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,7 +58,7 @@ get_release_name() {
5858
}
5959

6060
create_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

6464
push_and_release() {
@@ -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

155155
main "${@}"

0 commit comments

Comments
 (0)