Skip to content

Commit

Permalink
BuildBeforePublish: Fix removal of temporary package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-l-hart committed Aug 5, 2021
1 parent c384d0e commit 951724d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ts/ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ fi
version_placeholder="0.0.0-REPLACEME"
if [[ "$OSTYPE" == "darwin"* ]]
then
sed_cmd="sed -i ''"
sed_cmd="sed -i .bak"
else
sed_cmd="sed -i''"
sed_cmd="sed -i.bak"
fi
$sed_cmd "s,$version_placeholder,$TS_RELEASE_VERSION,g" package.json
rm package.json.bak

# If this is a dry run, add the flag
dry_run_flag=""
Expand All @@ -41,3 +42,4 @@ npm publish $dry_run_flag

# Replace the placeholder
$sed_cmd "s,$TS_RELEASE_VERSION,$version_placeholder,g" package.json
rm package.json.bak

0 comments on commit 951724d

Please sign in to comment.