Skip to content

Commit a6f8f1a

Browse files
committed
fix(cd): test jq
1 parent b48992d commit a6f8f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cd ${{ github.workspace }}
4040
npm i
4141
npm run json
42-
jq -c '.version = steps.semantic-release.outputs.version' package.json > tmp.$$.json && mv tmp.$$.json package.json
42+
jq '.version = steps.semantic-release.outputs.version' package.json|sponge package.json
4343
npm publish
4444
env:
4545
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)