Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix release process #1200

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 [email protected]"
-
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
Loading