yuleicul/obsidian-ketcher

Set a Github action to release automatically

Opened this issue · 1 comments

When version in package.json is updated, the GitHub action should

  1. Run npm run version to update manifest.json and versions.json, and commit these changes
  2. Run npm run build to generate new styles.css and main.js
  3. Tag on the current HEAD
  4. Release a new version with manifest.json, main.js, and styles.css

FYI

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