Skip to content

Commit e38d15f

Browse files
author
mashal-m
committed
feat: config semantic release work around
1 parent 2543926 commit e38d15f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ jobs:
3030
run: npm run test
3131
- name: Build
3232
run: npm run build
33+
- name: run semantic release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: npx semantic-release
37+
id: ver
38+
outputs:
39+
output1: ${{ steps.ver.outputs.nextVer }}
40+
print:
41+
needs: release
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- name: print version
45+
run: echo ${{ needs.release.outputs.output1}}
3346
- name: i18n_extract
3447
run: npm run i18n_extract
3548
- name: Coverage

.releaserc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
"prepare": "@semantic-release/npm",
1616
"publish": [
1717
"@semantic-release/npm",
18+
"@semantic-release/exec",
1819
{
1920
"path": "@semantic-release/github",
2021
"assets": {
2122
"path": "dist/*"
22-
}
23+
},
24+
"publishCmd": "echo ::set-output name=nextVer::${nextRelease.version}"
2325
}
2426
],
2527
"success": [],

0 commit comments

Comments
 (0)