Skip to content

Commit

Permalink
fix(release process): review git-plugin usage; dep-bump cross-env;
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Sep 18, 2019
1 parent 109a3ae commit 0ec058a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"main": "uts46.js",
"license": "MIT",
"engines": {
"node": ">=6.0.0"
"node": ">=8.3.0"
},
"homepage": "https://github.com/hexonet/idna-uts46",
"repository": "github:hexonet/idna-uts46",
Expand Down Expand Up @@ -54,7 +54,7 @@
"@semantic-release/exec": "^3.3.6",
"@hexonet/semantic-release-github-npm-config": "^1.0.0",
"browserify": "^16.5.0",
"cross-env": "^5.2.1",
"cross-env": "^6.0.0",
"eslint": "^6.3.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
Expand All @@ -69,4 +69,4 @@
"semantic-release": "^15.13.24",
"terser": "^4.3.0"
}
}
}
6 changes: 6 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ const cfg = require('@hexonet/semantic-release-github-npm-config')
cfg.plugins.unshift(['@semantic-release/exec', {
prepareCmd: 'npm run bundle && npm run minify'
}])
cfg.plugins = cfg.plugins.map((plugin) => {
if (plugin[0] === '@semantic-release/git') {
plugin[1].assets.push('uts46bundle.js', 'uts46bundle.min.js')
}
return plugin
})
module.exports = cfg

0 comments on commit 0ec058a

Please sign in to comment.