From 4b41999e4c6df8de03d06b1a68cbb07cd2d3f757 Mon Sep 17 00:00:00 2001 From: Benny Neugebauer Date: Wed, 26 Jun 2024 19:34:35 +0300 Subject: [PATCH] fix: Reset Git after release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e78cdd2..281509a 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "fix:format": "npm run check:format -- --write", "fix:lint": "npm run check:lint -- --fix --quiet", "generate": "openapi-generator-cli generate -i ./swagger.json -g typescript-fetch -p \"importFileExtension=.js\" -o ./src", - "postversion": "git push origin && git push origin --tags && npm publish --access public", + "postversion": "git push origin && git push origin --tags && npm publish --access public && git reset --hard", "preversion": "git checkout main && git pull && npm install && npm run test && npm run dist", "release:major": "generate-changelog -M -x \"chore,test\" && npm run docs && npm run commit && npm version major", "release:minor": "generate-changelog -m -x \"chore,test\" && npm run docs && npm run commit && npm version minor",