fix(ci): correct node -p quoting for package.json version in Actions shell (#354)

Single-quoted bash passes backslashes literally; escaped quotes broke Node on v24.
This commit is contained in:
cucadmuh
2026-04-29 01:26:23 +03:00
committed by GitHub
parent ba9f5728b3
commit b7a842395c
@@ -51,7 +51,7 @@ jobs:
id: get-version id: get-version
run: | run: |
set -euo pipefail set -euo pipefail
V="$(node -p 'require(\"./package.json\").version')" V="$(node -p 'require("./package.json").version')"
# Never publish with a missing/non-semver-ish version — empty becomes tag "app-v" on GitHub and breaks manifests. # Never publish with a missing/non-semver-ish version — empty becomes tag "app-v" on GitHub and breaks manifests.
if [ -z "$V" ]; then if [ -z "$V" ]; then
echo "::error::package.json version is empty" echo "::error::package.json version is empty"