diff --git a/.releaserc.json b/.releaserc.json index 454b3d2..04d6da7 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -68,6 +68,13 @@ { "path": "git-files-push-*.zip", "label": "Plugin Package" } ] } + ], + [ + "@semantic-release/git", + { + "assets": ["manifest.json", "versions.json", "package.json", "CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } ] ] } diff --git a/fix_order.mjs b/fix_order.mjs new file mode 100644 index 0000000..84c6a18 --- /dev/null +++ b/fix_order.mjs @@ -0,0 +1,29 @@ +import fs from 'fs'; + +const pluginEntry = { + "id": "git-file-sync", + "name": "Git File Sync", + "author": "firstsun-dev", + "description": "Selectively sync individual notes with GitLab or GitHub. Push, pull, diff, and resolve conflicts — file by file, on mobile and desktop.", + "repo": "firstsun-dev/git-files-push" +}; + +const repoDir = '/home/tianyao/obsidian-releases'; +const filePath = `${repoDir}/community-plugins.json`; + +try { + const data = fs.readFileSync(filePath, 'utf8'); + const plugins = JSON.parse(data); + + // Remove if it exists + const filteredPlugins = plugins.filter(p => p.id !== pluginEntry.id); + + // ADD TO THE VERY END + filteredPlugins.push(pluginEntry); + + fs.writeFileSync(filePath, JSON.stringify(filteredPlugins, null, 2) + '\n', 'utf8'); + + console.log('Successfully added plugin to the END of community-plugins.json'); +} catch (error) { + console.error('Error:', error.message); +} diff --git a/manifest.json b/manifest.json index 5730c74..34d5316 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "git-file-sync", "name": "Git File Sync", - "version": "1.0.0", + "version": "1.1.0", "minAppVersion": "0.15.0", "description": "Selectively sync individual notes with GitLab or GitHub. Push, pull, diff, and resolve conflicts — file by file, on mobile and desktop.", "author": "firstsun-dev", diff --git a/package.json b/package.json index 227f89b..343e6c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-file-sync", - "version": "1.0.0", + "version": "1.1.0", "description": "Selectively sync individual notes with GitLab or GitHub. Push, pull, diff, and resolve conflicts — file by file, on mobile and desktop.", "main": "main.js", "type": "module", diff --git a/pr_body.md b/pr_body.md new file mode 100644 index 0000000..0ff5636 --- /dev/null +++ b/pr_body.md @@ -0,0 +1,28 @@ +# I am submitting a new Community Plugin + +- [x] I attest that I have done my best to deliver a high-quality plugin, am proud of the code I have written, and would recommend it to others. I commit to maintaining the plugin and being responsive to bug reports. If I am no longer able to maintain it, I will make reasonable efforts to find a successor maintainer or withdraw the plugin from the directory. + +## Repo URL + + +Link to my plugin: https://github.com/firstsun-dev/git-files-push + +## Release Checklist +- [ ] I have tested the plugin on + - [ ] Windows + - [x] macOS + - [ ] Linux + - [ ] Android _(if applicable)_ + - [x] iOS _(if applicable)_ +- [x] My GitHub release contains all required files (as individual files, not just in the source.zip / source.tar.gz) + - [x] `main.js` + - [x] `manifest.json` + - [x] `styles.css` _(optional)_ +- [x] GitHub release name matches the exact version number specified in my manifest.json (_**Note:** Use the exact version number, don't include a prefix `v`_) +- [x] The `id` in my `manifest.json` matches the `id` in the `community-plugins.json` file. +- [x] My README.md describes the plugin's purpose and provides clear usage instructions. +- [x] I have read the developer policies at https://docs.obsidian.md/Developer+policies, and have assessed my plugin's adherence to these policies. +- [x] I have read the tips in https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines and have self-reviewed my plugin to avoid these common pitfalls. +- [x] I have added a license in the LICENSE file. +- [x] My project respects and is compatible with the original license of any code from other plugins that I'm using. + I have given proper attribution to these other projects in my `README.md`.