diff --git a/.husky/bump-version.js b/.husky/bump-version.js index a95e447..bd4cc23 100644 --- a/.husky/bump-version.js +++ b/.husky/bump-version.js @@ -17,7 +17,7 @@ console.log( ); // Check if this is an --amend operation -const isAmend = process.env.GIT_INDEX_FILE !== undefined; +const isAmend = process.argv.includes("--amend"); if (isAmend) { console.log("Amend operation detected, no version bump needed."); diff --git a/package.json b/package.json index 77b5104..9c9c549 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starred-to-logseq-action", - "version": "1.3.1", + "version": "1.3.2", "description": "This project is a GitHub action that outputs GitHub stars in the format of Logseq documents.", "main": "dist/index.js", "scripts": { @@ -34,4 +34,4 @@ "moment": "^2.29.4", "param-case": "^3.0.4" } -} \ No newline at end of file +}