Skip to content

Commit

Permalink
fix: Stupid is as stupid does...
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Jul 1, 2020
1 parent c1df8e3 commit ea99099
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 1 addition & 7 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ module.exports = {
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/exec", {
"prepareCmd": '' +
'sed -ie \'s|\\(.*"version"\\): "\\(.*\\)",.*|\\1: \'"\\"${nextRelease.version}\\",|" static/system.json ' +
'&& cp static/system.json dist ' +
'&& sed -ie \'s|\\(.*"version"\\): "\\(.*\\)",.*|\\1: \'"\\"${nextRelease.version}\\",|" package.json ' +
'&& npm install ' +
'&& cd dist && zip -r twodsix.zip * || true && cd ..' +
'',
"prepareCmd": "./release.sh ${nextRelease.version}",
}],
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "package.json", "package-lock.json", "static/system.json"],
Expand Down
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sed -i -e 's|\(.*"version"\): "\(.*\)",.*|\1: '"\"$1\",|" static/system.json \
&& cp static/system.json dist \
&& sed -i -e 's|\(.*"version"\): "\(.*\)",.*|\1: '"\"$1\",|" package.json \
&& npm install \
&& cd dist || exit \
&& zip -r twodsix.zip ./* \
&& cd ..
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = (env, argv) => {
plugins: [
new CopyWebpackPlugin({
patterns: [
{from: 'static', to: 'dist'}
{from: 'static'}
],
}, {
writeToDisk: true
Expand Down

0 comments on commit ea99099

Please sign in to comment.