Skip to content

Commit

Permalink
Remove deprecated function in build script (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrung authored Sep 12, 2023
1 parent cf4cee5 commit ea47044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/conditional-install
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end
# Why not read node_modules/.package-lock.json? Because it's not the same.
hashfile = 'node_modules/.package-lock.json.hash'
current = Digest::SHA2.file('package-lock.json').hexdigest
expected = File.read(hashfile) if File.exists?(hashfile)
expected = File.read(hashfile) if File.exist?(hashfile)

if expected != current
puts 'Running npm ci to regenerate node_modules.'
Expand Down
2 changes: 1 addition & 1 deletion script/version-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const versionBump = async (option, branchName) => {
const currentBranch = (spawnOrFail('git', [' branch --show-current'], { skipOutput: true })).trim();
spawnOrFail('git', [`checkout -b ${prevReleaseBranch}`]);
updateBaseBranch(prevReleaseBranch);
spawnOrFail('git', ['add -A']);
spawnOrFail('git', ['add CHANGELOG.md package.json package-lock.json']);
spawnOrFail('git', [`commit -m "Update base branch to ${prevReleaseBranch}"`]);
spawnOrFail('git', [`push origin HEAD:${prevReleaseBranch} -f`]);
logger.log(`Branch ${prevReleaseBranch} is created. Please make sure to set branch protection.`);
Expand Down

0 comments on commit ea47044

Please sign in to comment.