This repository is to automatically release a new obsidian plugin or a new version of it, just by typing the following in your terminal:
$ make release
To use this, you need to copy the release.yml
into your actions folder: .github/workflows
. Also copy the scripts, makefile, eslint config files and version-bump.mjs
into your project. Also the scripts inside this package.json
are required. You can include release notes in the release-notes.md
file with markdown styles. If this file is not included no release notes are added.
- Automatically fetched the last release tag, increases it.
- Updates the version in
package.json
,manifest.json
andversion.json
. - Checks if
package.json
andmanifest.json
have the same name and description and those are not empty. Also the description need to end with'.'
and does not contain the wordsobsidian
andplugin
. - Use linter to fix style issues and commit those.
- Create new tag and push changes to new version and style issue fixes with tag