mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
fix: enable automatic versioning and sync manifest to 1.1.0
This commit is contained in:
parent
8ec25252d9
commit
a27d3fdba5
5 changed files with 66 additions and 2 deletions
|
|
@ -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}"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
|
|||
29
fix_order.mjs
Normal file
29
fix_order.mjs
Normal file
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
28
pr_body.md
Normal file
28
pr_body.md
Normal file
|
|
@ -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
|
||||
|
||||
<!--- Paste a link to your repo here for easy access -->
|
||||
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`.
|
||||
Loading…
Reference in a new issue