Skip to content

Commit 19d6ec9

Browse files
author
mashal-m
committed
refactor: update release file
1 parent 014712a commit 19d6ec9

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@ jobs:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444
run: npx semantic-release
4545
id: ver
46+
outputs:
47+
output1: ${{ steps.ver.outputs.nextVer }}
48+
49+
print:
50+
needs: tests
51+
runs-on: ubuntu-20.04
52+
steps:
53+
- name: Print version
54+
run: echo ${{ needs.tests.outputs.output1 }}

.releaserc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@
1515
"prepare": "@semantic-release/npm",
1616
"publish": [
1717
"@semantic-release/npm",
18-
["@semantic-release/exec",
19-
{
20-
"publishCmd": "echo ::set-output name=nextVer::${nextRelease.version}"
21-
}
22-
],
18+
"@semantic-release/exec",
2319
{
2420
"path": "@semantic-release/github",
2521
"assets": {
2622
"path": "dist/*"
27-
}
23+
},
24+
"publishCmd": "echo ::set-output name=nextVer::${nextRelease.version}"
2825
}
2926
],
3027
"success": [],
3128
"fail": []
32-
}
29+
}

0 commit comments

Comments
 (0)