Set a Github action to release automatically
Opened this issue · 1 comments
yuleicul commented
When version
in package.json
is updated, the GitHub action should
- Run
npm run version
to updatemanifest.json
andversions.json
, and commit these changes - Run
npm run build
to generate newstyles.css
andmain.js
- Tag on the current HEAD
- Release a new version with
manifest.json
,main.js
, andstyles.css
Acylation commented
FYI
- Sample workflow from marcus olsson https://github.com/marcusolsson/obsidian-projects/blob/main/.github/workflows/release.yml
- Obsidian plugin docs: https://docs.obsidian.md/Plugins/Releasing/Release+your+plugin+with+GitHub+Actions
Codes above require update version manually in manifest.json
. I found this thread in Obsidian Forum including some bash scripts allowing update manifest.json
automatically.
https://forum.obsidian.md/t/using-github-actions-to-release-plugins/7877