Skip to content

Commit ba1ddbd

Browse files
authored
fix: use -r with jq and add workflow for artifacts (#5016)
1 parent cf7cff0 commit ba1ddbd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/docker.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737

3838
- name: Get version
3939
id: version
40-
run: echo "::set-output name=version::$(jq .version package.json)"
40+
run: echo "::set-output name=version::$(jq -r .version package.json)"
4141

4242
- name: Download artifact
4343
uses: dawidd6/action-download-artifact@v2
4444
id: download
4545
with:
4646
branch: v${{ steps.version.outputs.version }}
47+
workflow: ci.yaml
4748
workflow_conclusion: completed
4849
name: "release-packages"
4950
path: release-packages

.github/workflows/npm-brew.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ jobs:
2525

2626
- name: Get version
2727
id: version
28-
run: echo "::set-output name=version::$(jq .version package.json)"
28+
run: echo "::set-output name=version::$(jq -r .version package.json)"
2929

3030
- name: Download artifact
3131
uses: dawidd6/action-download-artifact@v2
3232
id: download
3333
with:
3434
branch: v${{ steps.version.outputs.version }}
35+
workflow: ci.yaml
3536
workflow_conclusion: completed
3637
name: "npm-package"
3738
path: release-npm-package

0 commit comments

Comments
 (0)