Skip to content

Commit ee6964c

Browse files
committed
fix: correct shell quoting in release workflow
1 parent 17b1f87 commit ee6964c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
publish:
1515
runs-on: ubuntu-latest
16-
environment: npm
16+
environment: release
1717
permissions:
1818
contents: read
1919
id-token: write
@@ -37,7 +37,7 @@ jobs:
3737
- name: Verify version match
3838
run: |
3939
TAG_REF="${{ github.event.inputs.tag || github.ref_name }}"
40-
PACKAGE_VERSION="v$(node -p \"require('./package.json').version\")"
40+
PACKAGE_VERSION="v$(node -p 'require("./package.json").version')"
4141
if [ "$PACKAGE_VERSION" != "$TAG_REF" ]; then
4242
echo "Error: Package version ($PACKAGE_VERSION) doesn't match tag ($TAG_REF)"
4343
exit 1

0 commit comments

Comments
 (0)