Skip to content

Commit

Permalink
fix(scripts): support sed on macOS systems
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Aug 25, 2022
1 parent 364419c commit 0a53db3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/releaserc.version.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ module.exports = {
verifyReleaseCmd:
"echo ${nextRelease.version} > .VERSION && \
npm version ${nextRelease.version} --no-git-tag-version --allow-same-version && \
sed -i 's/version:.*/version: ${nextRelease.version}/g' chart/Chart.yaml && \
sed -i 's/appVersion:.*/appVersion: \"${nextRelease.version}\"/g' chart/Chart.yaml && \
sed -i 's/imageTag:.*/imageTag: ${nextRelease.version}/g' chart/values.yaml && \
sed -i 's/version:.*/version: ${nextRelease.version}/g' metadata.yml && \
sed -i 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md",
if [[ \"$OSTYPE\" == \"darwin\"* ]]; then SEDOPTION=\" \"; fi && \
sed -i$SEDOPTION'' -e 's/version:.*/version: ${nextRelease.version}/g' chart/Chart.yaml && \
sed -i$SEDOPTION'' -e 's/appVersion:.*/appVersion: \"${nextRelease.version}\"/g' chart/Chart.yaml && \
sed -i$SEDOPTION'' -e 's/imageTag:.*/imageTag: ${nextRelease.version}/g' chart/values.yaml && \
sed -i$SEDOPTION'' -e 's/version:.*/version: ${nextRelease.version}/g' metadata.yml && \
sed -i$SEDOPTION'' -e 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md",
},
],
],
Expand Down

0 comments on commit 0a53db3

Please sign in to comment.