Skip to content

Commit 7a3f45a

Browse files
committedJan 11, 2024
Fix jq output to remove quotes and newlines
1 parent b74402c commit 7a3f45a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎.github/workflows/build-plugin-zip.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ jobs:
342342
- name: Publish packages to npm ("latest" dist-tag)
343343
run: |
344344
cd main
345-
'npm install --global npm@"$(jq .engines.npm package.json)"'
345+
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
346346
npm ci
347347
./bin/plugin/cli.js npm-latest --semver minor --ci --repository-path ../publish
348348
env:

‎.github/workflows/publish-npm-packages.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
if: ${{ github.event.inputs.release_type == 'development' }}
8686
run: |
8787
cd cli
88-
'npm install --global npm@"$(jq .engines.npm package.json)"'
88+
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
8989
npm ci
9090
./bin/plugin/cli.js npm-next --ci --repository-path ../publish
9191
env:
@@ -95,7 +95,7 @@ jobs:
9595
if: ${{ github.event.inputs.release_type == 'bugfix' }}
9696
run: |
9797
cd cli
98-
'npm install --global npm@"$(jq .engines.npm package.json)"'
98+
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
9999
npm ci
100100
./bin/plugin/cli.js npm-bugfix --ci --repository-path ../publish
101101
env:
@@ -105,7 +105,7 @@ jobs:
105105
if: ${{ github.event.inputs.release_type == 'wp' && github.event.inputs.wp_version }}
106106
run: |
107107
cd publish
108-
'npm install --global npm@"$(jq .engines.npm package.json)"'
108+
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
109109
npm ci
110110
npx lerna publish patch --dist-tag wp-${{ github.event.inputs.wp_version }} --no-private --yes --no-verify-access
111111
env:

0 commit comments

Comments
 (0)
Please sign in to comment.