File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,17 +64,17 @@ jobs:
6464 git checkout main
6565 git pull origin main
6666
67- # Update package.json
67+ # Update version in all relevant files
6868 jq --arg v "$VERSION" '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json
69- # Update Go server version
69+ jq --arg v "$VERSION" '. version = $v' frontend/package.json > frontend/package.tmp.json && mv frontend/package.tmp.json frontend/package.json
7070 sed -i "s/const version = .*/const version = \"$VERSION\"/" go-relay/cmd/server/main.go
7171
7272 # Configure git
7373 git config --global user.name 'github-actions[bot]'
7474 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
7575
7676 # Commit and push changes only if something actually changed
77- git add package.json go-relay/cmd/server/main.go
77+ git add package.json frontend/package.json go-relay/cmd/server/main.go
7878 if git diff --cached --quiet; then
7979 echo "Version already up to date, skipping commit"
8080 else
You can’t perform that action at this time.
0 commit comments