Compare commits

..

2 Commits
0.3.4 ... 0.3.5

Author SHA1 Message Date
chris
e3669e7a83 Added auto shell 2022-05-24 15:23:43 +08:00
chris
617bb370dc FIxed BRAT download 2022-05-24 15:13:42 +08:00
5 changed files with 36 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
# 感谢
[开发流程 | Obsidian 插件开发文档](https://luhaifeng666.github.io/obsidian-plugin-docs-zh/zh/getting-started/development-workflow.html)
[GitHub - devbean/obsidian-wordpress: An obsidian plugin for publishing docs to WordPress.](https://github.com/devbean/obsidian-wordpress)
[GitHub - obsidianmd/obsidian-api](https://github.com/obsidianmd/obsidian-api)
[GitHub - zhaohongxuan/obsidian-weread-plugin: Obsidian Weread Plugin is an plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.](https://github.com/zhaohongxuan/obsidian-weread-plugin)
[GitHub - zhaohongxuan/obsidian-weread-plugin: Obsidian Weread Plugin is an plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.](https://github.com/zhaohongxuan/obsidian-weread-plugin)

View File

@@ -1,7 +1,7 @@
{
"id": "obsidian-to-notion",
"name": "Obsidian shared to Notion",
"version": "0.3.0",
"version": "0.3.4",
"minAppVersion": "0.0.1",
"description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api",
"author": "Easychris",

View File

@@ -1,6 +1,6 @@
{
"name": "obsidian-to-notion",
"version": "0.3.0",
"version": "0.3.4",
"type": "module",
"description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api",
"main": "main.js",

4
release.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
node update-version.js $1
git tag -a $1 -m $1
git push origin $1

26
update-version.js Normal file
View File

@@ -0,0 +1,26 @@
// update package.json version
import fs from 'fs';
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
console.log(packageJson.version);
// get node args
const args = process.argv.slice(2);
packageJson.version = args[0];
console.log(packageJson.version);
// write package.json
fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2));
// read manifest.json
const manifestJson = JSON.parse(fs.readFileSync('./manifest.json', 'utf8'));
manifestJson.version = args[0];
// write manifest.json
fs.writeFileSync('./manifest.json', JSON.stringify(manifestJson, null, 2));