Update husky and image-tag
parent
ef9bb85e15
commit
196c8b1f1a
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
if [ -t 1 ]; then
|
||||||
|
exec < /dev/tty
|
||||||
|
fi
|
||||||
|
|
||||||
npx lint-staged
|
npx lint-staged
|
||||||
|
yarn lint
|
||||||
yarn test
|
yarn test
|
||||||
yarn build
|
yarn build
|
||||||
git add dist/index.*
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
10
package.json
10
package.json
|
@ -47,16 +47,10 @@
|
||||||
"*.{js,jsx,ts,tsx}": [
|
"*.{js,jsx,ts,tsx}": [
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
"eslint",
|
"eslint",
|
||||||
"git add",
|
|
||||||
"jest --findRelatedTests"
|
"jest --findRelatedTests"
|
||||||
],
|
],
|
||||||
"*.{json,md,yaml,yml}": [
|
"*.{json,md,yaml,yml}": [
|
||||||
"prettier --write",
|
"prettier --write"
|
||||||
"git add"
|
]
|
||||||
],
|
|
||||||
"*.sh": [
|
|
||||||
"git update-index --chmod=+x"
|
|
||||||
],
|
|
||||||
"*.js": "eslint --cache --fix"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,8 @@ class ImageTag {
|
||||||
return customImage;
|
return customImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `${image}:${tag}-0`; // '0' here represents the docker repo version
|
const dockerRepoVersion = 0;
|
||||||
|
return `${image}:${tag}-${dockerRepoVersion}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue