Skip to content

Commit d4ab1fb

Browse files
committed
fix: change CHANGELOG.md parser to correct
1 parent 01cab1e commit d4ab1fb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/categories/js/create-release-worflow.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { jsCategoryState } from 'src/utils/categories';
22
import { addGithubWorkflow } from 'src/utils/github';
33

4-
const content = `name: Create Release
4+
const content = `name: release
55
66
on:
77
push:
@@ -14,13 +14,16 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
17-
- name: Parse CHANGELOG.md
18-
id: changelog
19-
uses: coditory/changelog-parser@v1
17+
- name: Get release notes from CHANGELOG.md
18+
uses: yashanand1910/standard-release-notes@v1.2.1
19+
id: get_release_notes
20+
with:
21+
version: \${{ github.ref }}
2022
- name: Release to github
2123
uses: softprops/action-gh-release@v1
2224
with:
23-
body: \${{ steps.changelog.outputs.description }}
25+
body: \${{ steps.get_release_notes.outputs.release_notes }}
26+
2427
`;
2528

2629
const defaultConfig = {

0 commit comments

Comments
 (0)