Update husky and image-tag
parent
ef9bb85e15
commit
196c8b1f1a
|
@ -1,7 +1,11 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
if [ -t 1 ]; then
|
||||
exec < /dev/tty
|
||||
fi
|
||||
|
||||
npx lint-staged
|
||||
yarn lint
|
||||
yarn test
|
||||
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}": [
|
||||
"prettier --write",
|
||||
"eslint",
|
||||
"git add",
|
||||
"jest --findRelatedTests"
|
||||
],
|
||||
"*.{json,md,yaml,yml}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
],
|
||||
"*.sh": [
|
||||
"git update-index --chmod=+x"
|
||||
],
|
||||
"*.js": "eslint --cache --fix"
|
||||
"prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -122,7 +122,8 @@ class ImageTag {
|
|||
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