Skip to content

Commit c487faf

Browse files
committed
adjust preversion and postversion scripts
1 parent e22f560 commit c487faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"cache-cmd": "node ./dist/cli.cjs",
3535
"build": "rm -rf dist/* && microbundle --strict --target node --output dist/cli.ts --format cjs --generateTypes false",
3636
"type-check": "tsc --build",
37-
"preversion": "git checkout main && git pull",
38-
"postversion": "git push --follow-tags && open https://github.com/dcastil/debounce-cmd/releases"
37+
"preversion": "if [ -n \"$DANYS_MACHINE\" ]; then git checkout main && git pull; fi",
38+
"postversion": "if [ -n \"$DANYS_MACHINE\" ]; then git push --follow-tags && open https://github.com/dcastil/debounce-cmd/releases; fi"
3939
},
4040
"dependencies": {
4141
"date-fns": "^2.25.0",

0 commit comments

Comments
 (0)