From 45cc02cecd82154e622f02a257013712a20e0534 Mon Sep 17 00:00:00 2001 From: Yusuke Hatanaka Date: Fri, 27 Dec 2024 10:04:51 +0900 Subject: [PATCH] fix: use double quotes for sed command in create-release-pr-for-npm action (#9) --- .github/actions/create-release-pr-for-npm/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/create-release-pr-for-npm/action.yml b/.github/actions/create-release-pr-for-npm/action.yml index 93a09d8..30a2126 100644 --- a/.github/actions/create-release-pr-for-npm/action.yml +++ b/.github/actions/create-release-pr-for-npm/action.yml @@ -44,7 +44,7 @@ runs: git config --local user.email "${{ inputs.commit-user-email }}" git config --local user.name "${{ inputs.commit-user-name }}" git checkout -b release/${{ inputs.tag-prefix }}$VERSION - sed -i 's/"version": ".*"/"version": "$VERSION"/' package.json + sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json git add package.json git commit -m "chore: bump version to v$VERSION" git push origin release/${{ inputs.tag-prefix }}$VERSION