Skip to content

Commit

Permalink
fix: Add release notes to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 12, 2022
1 parent 8f4d8dc commit ca4d88c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
npx rexreplace "^.*?#+\s\[.*?\n.*?(?=\s*#+\s\[)" "_" -s -M -G -m -o "CHANGELOG.md" > release_notes.md
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release
id: create_release
Expand All @@ -40,6 +41,7 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false
body_path: release_notes.md
- name: Upload zip file
id: upload-zip
uses: actions/upload-release-asset@v1
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"release": "standard-version"
},
"standard-version": {
"t": ""
"t": "",
"releaseCommitMessageFormat": "Obsidian Admonitions Release: v{{currentTag}}"
},
"keywords": [],
"author": "Jeremy Valentine",
Expand Down Expand Up @@ -53,4 +54,4 @@
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"standard-version": "^9.3.2"
}
}
}

0 comments on commit ca4d88c

Please sign in to comment.