diff --git a/package.json b/package.json index 75e597f..ebca36d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --config eslint.config.mjs --cache", "format": "prettier . --write", "check": "npm run format && npm run lint", - "deploy": "eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask", + "predeploy": "npm version patch && npm run build", + "deploy": "npm run predeploy && eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask", "build:preview": "npm run build && astro preview", "build:deploy": "npm run build && npm run deploy", "copy:dist": "npm run build && cp -R dist ../ayco.io-flask/",