Skip to content

Commit

Permalink
Fix jq output to remove quotes and newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 11, 2024
1 parent b74402c commit 7a3f45a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ jobs:
- name: Publish packages to npm ("latest" dist-tag)
run: |
cd main
'npm install --global npm@"$(jq .engines.npm package.json)"'
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
npm ci
./bin/plugin/cli.js npm-latest --semver minor --ci --repository-path ../publish
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
if: ${{ github.event.inputs.release_type == 'development' }}
run: |
cd cli
'npm install --global npm@"$(jq .engines.npm package.json)"'
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
npm ci
./bin/plugin/cli.js npm-next --ci --repository-path ../publish
env:
Expand All @@ -95,7 +95,7 @@ jobs:
if: ${{ github.event.inputs.release_type == 'bugfix' }}
run: |
cd cli
'npm install --global npm@"$(jq .engines.npm package.json)"'
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
npm ci
./bin/plugin/cli.js npm-bugfix --ci --repository-path ../publish
env:
Expand All @@ -105,7 +105,7 @@ jobs:
if: ${{ github.event.inputs.release_type == 'wp' && github.event.inputs.wp_version }}
run: |
cd publish
'npm install --global npm@"$(jq .engines.npm package.json)"'
'npm install --global npm@"$(jq --raw-output --join-output .engines.npm package.json)"'
npm ci
npx lerna publish patch --dist-tag wp-${{ github.event.inputs.wp_version }} --no-private --yes --no-verify-access
env:
Expand Down

0 comments on commit 7a3f45a

Please sign in to comment.