mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user