@@ -75,6 +75,7 @@ Each individual plugin can be disabled, replaced or used with other plugins in t
7575{
7676 "release" : {
7777 "verifyConditions" : [" @semantic-release/npm" , " verify-other-condition" ],
78+ "prepare" : [" @semantic-release/npm" , " custom-prepare" ],
7879 "publish" : [" @semantic-release/npm" , " custom-publish" ]
7980 }
8081}
@@ -86,17 +87,11 @@ The `npmPublish` and `tarballDir` option can be used to skip the publishing to t
8687{
8788 "release" : {
8889 "verifyConditions" : [" @semantic-release/npm" , " @semantic-release/git" , " @semantic-release/github" ],
89- "publish" : [
90- {
91- "path" : " @semantic-release/npm" ,
92- "npmPublish" : false ,
93- "tarballDir" : " dist"
94- },
95- {
96- "path" : " @semantic-release/github" ,
97- "assets" : " dist/*.tgz"
98- },
99- ]
90+ "prepare" : [" @semantic-release/npm" ],
91+ "publish" : [" @semantic-release/npm" , " @semantic-release/github" ],
92+ "npmPublish" : false ,
93+ "tarballDir" : " dist" ,
94+ "assets" : " dist/*.tgz"
10095 }
10196}
10297```
@@ -107,16 +102,10 @@ When publishing from a sub-directory with the `pkgRoot` option, the `package.jso
107102{
108103 "release" : {
109104 "verifyConditions" : [" @semantic-release/npm" , " @semantic-release/git" ],
110- "publish" : [
111- {
112- "path" : " @semantic-release/npm" ,
113- "pkgRoot" : " dist"
114- },
115- {
116- "path" : " @semantic-release/git" ,
117- "assets" : [" package.json" , " npm-shrinkwrap.json" ]
118- },
119- ]
105+ "prepare" : [" @semantic-release/npm" , " @semantic-release/git" ],
106+ "publish" : [" @semantic-release/npm" ],
107+ "pkgRoot" : " dist" ,
108+ "assets" : [" package.json" , " npm-shrinkwrap.json" ]
120109 },
121110 "scripts" : {
122111 "postpublish" : " cp -r dist/package.json . && cp -r dist/npm-shrinkwrap.json ."
0 commit comments