yuleicul / obsidian-ketcher

View or draw chemical structures and reactions using Ketcher.
https://obsidian.md/plugins?search=yulei%20chen
Apache License 2.0
30 stars 2 forks source link

Set a Github action to release automatically #15

Open yuleicul opened 1 year ago

yuleicul commented 1 year ago

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
Acylation commented 1 year ago

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