Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a Github action to release automatically #15

Open
yuleicul opened this issue Aug 22, 2023 · 1 comment
Open

Set a Github action to release automatically #15

yuleicul opened this issue Aug 22, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yuleicul
Copy link
Owner

yuleicul commented Aug 22, 2023

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
@yuleicul yuleicul added enhancement New feature or request help wanted Extra attention is needed labels Aug 22, 2023
@Acylation
Copy link
Contributor

Acylation commented Aug 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants