Skip to content

Commit

Permalink
🐛 fix(config): 测试 exec 执行打包
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 19, 2021
1 parent d0d83fa commit 0cb7f23
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
- name: lint
run: yarn lint && yarn tsc

- name: build
run: yarn zip

- name: release
run: yarn release
env:
Expand Down
6 changes: 6 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ module.exports = {
},
],
'@semantic-release/npm', //如果是npm包会自动更新版本号并发布
[
'@semantic-release/exec',
{
prepareCmd: 'yarn zip',
},
],
[
'@semantic-release/github',
{
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/archiver": "^5.1.0",
Expand All @@ -79,7 +80,6 @@
"@types/jquery": "^3.5.5",
"@types/node": "^14.11.2",
"@types/react-test-renderer": "^17.0.0",
"prettier": "^2.2.1",
"@types/webpack": "^4.41.22",
"@umijs/fabric": "^2.2.2",
"@umijs/test": "^3.2.22",
Expand All @@ -94,6 +94,7 @@
"husky": "^4.3.8",
"jest": "26.6.3",
"lint-staged": "^10.0.2",
"prettier": "^2.2.1",
"react-test-renderer": "^16.13.1",
"semantic-release": "^17.3.3",
"ts-node": "^9.1.1",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2252,6 +2252,18 @@
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0"
integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==

"@semantic-release/exec@^5.0.0":
version "5.0.0"
resolved "https://registry.npm.taobao.org/@semantic-release/exec/download/@semantic-release/exec-5.0.0.tgz#69c253107a755dabf7c262d417269d099f714356"
integrity sha1-acJTEHp1Xav3wmLUFyadCZ9xQ1Y=
dependencies:
"@semantic-release/error" "^2.1.0"
aggregate-error "^3.0.0"
debug "^4.0.0"
execa "^4.0.0"
lodash "^4.17.4"
parse-json "^5.0.0"

"@semantic-release/git@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5"
Expand Down

0 comments on commit 0cb7f23

Please sign in to comment.