Skip to content

Commit f109f1f

Browse files
committed
fix: check desktop package.json for version changes in workflow
1 parent dcd3412 commit f109f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/desktop-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
- name: Check if version changed
8585
id: version-check
8686
run: |
87-
if git diff HEAD~1 HEAD --name-only | grep -E "(package\.json|version)" && git diff HEAD~1 HEAD | grep -E "^\+.*version.*[0-9]+\.[0-9]+\.[0-9]+"; then
88-
VERSION=$(node -p "require('./package.json').version")
87+
if git diff HEAD~1 HEAD --name-only | grep -q "apps/desktop/package\.json" && git diff HEAD~1 HEAD | grep -E "^\+.*version.*[0-9]+\.[0-9]+\.[0-9]+"; then
88+
VERSION=$(node -p "require('./apps/desktop/package.json').version")
8989
echo "version-changed=true" >> $GITHUB_OUTPUT
9090
echo "new-version=v$VERSION" >> $GITHUB_OUTPUT
9191
else

0 commit comments

Comments
 (0)