From e92b4733cc28f66a2702581f53a83e1e5da45b62 Mon Sep 17 00:00:00 2001 From: WickyNilliams Date: Thu, 21 Mar 2024 13:49:34 +0000 Subject: [PATCH] prepare for publish --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ceec7d6..6f5b02b 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ "files": [ "dist" ], + "repository": { + "type": "git", + "url": "https://github.com/WickyNilliams/cally" + }, "scripts": { "start": "vite", "build": "vite build && npm run astro:build", @@ -15,7 +19,10 @@ "astro:dev": "astro dev --root ./docs", "preastro:build": "rm -rf ./docs/dist", "astro:build": "astro check --root ./docs && astro build --root ./docs", - "astro:preview": "astro preview --root ./docs" + "astro:preview": "astro preview --root ./docs", + "preversion": "npm test", + "version": "npm run build", + "postversion": "git push origin main --tags && npm publish" }, "devDependencies": { "@astrojs/check": "^0.5.9",