Skip to content

Commit 064ad1e

Browse files
authored
fix: ensure version variable set correctly (#32)
1 parent f95aaa5 commit 064ad1e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/frontend-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main]
66
paths:
77
- 'frontend/**'
8+
- '.github/workflows/frontend-image.yml'
9+
workflow_dispatch:
810

911
permissions:
1012
contents: read
@@ -22,7 +24,8 @@ jobs:
2224
cd frontend
2325
npm ci
2426
npm version patch --no-git-tag-version
25-
echo "VERSION=$(node -p 'require(\"./package.json\").version')" >> $GITHUB_ENV
27+
VERSION=$(node -p 'require("./package.json").version')
28+
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
2629
cd ..
2730
- name: Commit version bump
2831
run: |

0 commit comments

Comments
 (0)