From ca049e4b5d5eb16bb2ee67cfd5c1f8e9ebdacd0c Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Tue, 5 Sep 2023 13:57:20 +0800 Subject: [PATCH] chore(package.json): update deploy script to push tags before publishing to npm The deploy script in package.json has been updated to push tags before publishing to npm. This ensures that the latest version tag is pushed to the remote repository before publishing the package. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9be5ca2..3930130 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "dev": "ts-node ./src/cli.ts", "build": "rimraf out && node esbuild.config.js", "build:push": "npm run build && git add . && git commit -m 'build' && git push", - "deploy": "npm run build:push && npm version patch && git push --follow-tags && npm publish --tag latest", + "deploy": "npm version patch && npm run build:push && git push --tags && npm publish --tag latest", "lint": "eslint src --ext ts && tsc --noEmit", "format": "prettier --write src" },