Skip to content

Commit c6d489d

Browse files
Replace sed with jq (#7)
1 parent b629b17 commit c6d489d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/deploy-release.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ jobs:
1111
with:
1212
build-dir: .
1313
prepare-script: >-
14-
sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json
14+
tmp=$(mktemp) &&
15+
jq --arg version "$GITHUB_REF_NAME" \
16+
'.version = $version' \
17+
package.json > "$tmp" &&
18+
mv "$tmp" package.json

0 commit comments

Comments
 (0)