🔧 Chore: add auto update version script

This commit is contained in:
Cell
2023-03-31 22:22:38 +08:00
parent 566c2238a2
commit 80ae5003f7
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -22,7 +22,9 @@
"start": "npm run babel && npm run server",
"start:production": "npm run babel && npm run server:production",
"algolia": "atomic-algolia",
"update:docs": "git submodule update --remote --merge && git add docs && git commit -m ':memo: Docs: update theme docs'"
"update:docs": "git submodule update --remote --merge && git add docs && git commit -m ':memo: Docs: update theme docs'",
"version": "sed -i '' \"s/v$npm_package_version-RC/v$npm_package_version/g\" layouts/partials/init/index.html && git add .",
"postversion": "git push && git push --tags"
},
"repository": {
"type": "git",