提交 b539553e 编写于 作者: J Jason Park

Ignore package-lock.json when running git diff-index

上级 fca60ef1
#!/usr/bin/env bash
git fetch &&
! git diff-index --quiet origin/master &&
! git diff-index --quiet origin/master -- ':!package-lock.json' &&
git reset --hard origin/master &&
npm install &&
npm run build
......@@ -28,7 +28,7 @@ const trace = lang => (req, res, next) => {
const buildRelease = release => (
fs.pathExistsSync(repoPath) ?
execute(`git fetch && ! git diff-index --quiet ${release.target_commitish}`, repoPath) :
execute(`git fetch && ! git diff-index --quiet ${release.target_commitish} -- ':!package-lock.json'`, repoPath) :
execute(`git clone https://github.com/algorithm-visualizer/tracers.git ${repoPath}`, __dirname)
).then(() => execute(`git reset --hard ${release.target_commitish} && npm install && npm run build && ./bin/build`, repoPath));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册