Skip to content

Instantly share code, notes, and snippets.

View praveeno's full-sized avatar
🏠
Working from home

Praveen Soni praveeno

🏠
Working from home
View GitHub Profile
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active July 3, 2024 02:22
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@reime005
reime005 / husky.config.js
Last active February 11, 2021 03:25
Husky Configuration File
const runYarnLock = 'yarn install --frozen-lockfile';
module.exports = {
hooks: {
'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`,
'post-merge': runYarnLock,
'post-rebase': 'yarn install',
'pre-commit': 'yarn test && yarn lint-staged'
}
};