Skip to content
This repository was archived by the owner on Jan 8, 2023. It is now read-only.

Commit a798b48

Browse files
committed
🐛 fix: 修正 release ci release 脚本多次执行的 bug
1 parent 525cf1d commit a798b48

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

.appcast.xml

+1-10
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@
77
<item>
88
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.2/sketch-plugin-template.v0.3.2.zip" sparkle:version="0.3.2"/>
99
</item>
10-
<item>
11-
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.2/sketch-plugin-template.v0.3.2.zip" sparkle:version="0.3.2"/>
12-
</item>
1310
<item>
1411
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.1/sketch-plugin-template.v0.3.1.zip" sparkle:version="0.3.1"/>
1512
</item>
16-
<item>
17-
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.1/sketch-plugin-template.v0.3.1.zip" sparkle:version="0.3.1"/>
18-
</item>
19-
<item>
20-
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.0/sketch-plugin-template.v0.3.0.zip" sparkle:version="0.3.0"/>
21-
</item>
2213
<item>
2314
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.3.0/sketch-plugin-template.v0.3.0.zip" sparkle:version="0.3.0"/>
2415
</item>
@@ -29,4 +20,4 @@
2920
<enclosure url="https://github.com/arvinxx/sketch-plugin-template/releases/download/v0.0.1/sketch-plugin-template.sketchplugin.zip" sparkle:version="0.0.1"/>
3021
</item>
3122
</channel>
32-
</rss>
23+
</rss>

.releaserc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
[
2424
'@semantic-release/exec',
2525
{
26-
prepareCmd: 'yarn prerelease',
26+
prepareCmd: 'yarn pre-release',
2727
},
2828
],
2929
[

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"build:sketch": "NODE_ENV=prod skpm-build",
3030
"build:webview": "APP_ROOT=src/webview umi build",
3131
"build:webview-analyze": "APP_ROOT=src/webview ANALYZE=1 umi build",
32-
"prerelease": "ts-node ./scripts/release",
32+
"pre-release": "ts-node ./scripts/release",
3333
"release": "semantic-release",
3434
"clean": "rm -rf ./*.sketchplugin release dist",
3535
"refresh": "find ./*.sketchplugin -name \"_*.js\" | entr -r /Applications/Sketch.app/Contents/MacOS/Sketch",

0 commit comments

Comments
 (0)