Skip to content

Commit

Permalink
fix: fix release process (#1200)
Browse files Browse the repository at this point in the history
* fix: use lerna from lockfile

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

* fixup! fix: use lerna from lockfile

---------

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
  • Loading branch information
mkuznyetsov committed Sep 23, 2024
1 parent 4f1bf61 commit 14c0dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
-
name: "Install npm & lerna"
run: "npm install --global lerna@6.6.2"
-
name: Check existing tags
run: |
Expand Down
7 changes: 4 additions & 3 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function update_pkgs_versions() {
# update root `package.json` version
npm --no-git-tag-version version --allow-same-version "${VER}"
# update each package version
lerna version --no-git-tag-version -y "${VER}"
yarn install --frozen-lockfile --no-immutable
npx lerna version --no-git-tag-version -y "${VER}"
if [[ ${VER} != *"-next" ]]; then
# update devworkspace generator version for release
jq ".\"dependencies\".\"@eclipse-che/che-devworkspace-generator\" = \"${VER}\"" packages/dashboard-backend/package.json > packages/dashboard-backend/package.json.update
Expand All @@ -86,12 +87,12 @@ function update_pkgs_versions() {
jq ".\"dependencies\".\"@eclipse-che/che-devworkspace-generator\" = \"next-${BRANCH}\"" packages/dashboard-backend/package.json > packages/dashboard-backend/package.json.update
mv packages/dashboard-backend/package.json.update packages/dashboard-backend/package.json
fi
# update excluded dependencies vesion
# update excluded dependencies version
sed_in_place -e "s/@eclipse-che\/dashboard-backend@.*\`/@eclipse-che\/dashboard-backend@${VER}\`/" .deps/EXCLUDED/prod.md
sed_in_place -e "s/@eclipse-che\/dashboard-frontend@.*\`/@eclipse-che\/dashboard-frontend@${VER}\`/" .deps/EXCLUDED/prod.md
sed_in_place -e "s/@eclipse-che\/common@.*\`/@eclipse-che\/common@${VER}\`/" .deps/EXCLUDED/prod.md
# regenerate yarn.lock
yarn
yarn --no-immutable
# regenerate license files
yarn license:generate || true
}
Expand Down

0 comments on commit 14c0dd3

Please sign in to comment.