Skip to content

Commit

Permalink
feat: HS-188: Building before committing and added release rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay committed Jan 11, 2024
1 parent e0f44fb commit a486e43
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ then
fi
echo "***** ReScript Code Compiled! *****"

# JS Code Build
echo "*****~~~~~ Checking ReScript Build ~~~~~~*****"
if (! npm run build)
then
echo
echo "*****~~~~~ ReScript Build Completition Failed! ~~~~~*****"
exit 1
fi
echo "***** ReScript Build Completed! *****"

#Trailing Space Check
echo "Evaluating for trailing spaces"

Expand Down
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,26 @@
],
"repositoryUrl": "https://github.com/juspay/hyperswitch-web.git",
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "refactor",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
]
}
}
}

0 comments on commit a486e43

Please sign in to comment.