Skip to content

Commit 4647425

Browse files
hbelkhiracavalloni
authored andcommitted
ci(release.sh): revert the script release.sh
ref: MANAGER-17160 Signed-off-by: Hazem Belkhiria <[email protected]>
1 parent 1d449e8 commit 4647425

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/release/release.sh

Lines changed: 8 additions & 8 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,13 +58,13 @@ 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() {
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

155155
main "${@}"

0 commit comments

Comments
 (0)