File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -26,33 +26,33 @@ jobs:
26
26
lib
27
27
umd
28
28
29
- dry-run :
30
- name : Dry run
29
+ changelog :
30
+ name : Changelog
31
31
runs-on : ubuntu-latest
32
- environment : npm
33
32
steps :
34
33
- name : Checkout
35
34
uses : actions/checkout@v3
36
35
with :
37
- token : ${{ secrets.GH_TOKEN }}
38
- fetch-depth : 0 # necessary for correct CHANGELOGS
36
+ fetch-depth : 0 # necessary for correct changelog
39
37
- name : Set up node
40
38
uses : actions/setup-node@v3
41
39
with :
42
40
node-version : 18
43
41
cache : yarn
44
42
- name : Install
45
43
run : yarn install --immutable
46
- - name : Dry run release
47
- env :
48
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
49
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
50
- run : yarn release --dry-run >> $GITHUB_STEP_SUMMARY
44
+ - name : Changelog
45
+ run : |
46
+ yarn semantic-release \
47
+ -p @semantic-release/release-notes-generator \
48
+ --dry-run \
49
+ | tee changelog.out
50
+ sed -n '/#/,$p' changelog.out >> $GITHUB_STEP_SUMMARY
51
51
52
52
release :
53
53
name : Release
54
54
runs-on : ubuntu-latest
55
- needs : [build, dry-run ]
55
+ needs : [build, changelog ]
56
56
environment : npm
57
57
steps :
58
58
- name : Checkout
You can’t perform that action at this time.
0 commit comments