File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8787 "@semantic-release/npm": "^5.2.0-beta.5",
8888 "@semantic-release/git": "^7.1.0-beta.2",
8989 "@semantic-release/exec": "^3.4.0-beta.2",
90- "@semantic-release/github": "^5.3.0-beta.6"
90+ "@semantic-release/github": "^5.3.0-beta.6",
91+ "bestzip": "^2.1.2"
9192 }
9293 }
9394 EOF
@@ -158,7 +159,9 @@ steps:
158159 cat > npm-tarball-to-zip.sh <<- "EOF"
159160 cd package
160161 tarball=$(npm list --depth 0 | sed "s/@/-/g; s/ .*/.tgz/g; 1q;")
161- tar -tf $tarball | sed "s/^package\\///" | zip -@r $(echo $tarball | sed -e "s/\.[^.]*$//").zip
162+ zipName=$(echo $tarball | sed -e "s/\.[^.]*$//").zip
163+ files=$(tar -tf $tarball | sed "s/^package\\///")
164+ npx --no-install --cache ../node_modules bestzip $zipName $files
162165 rm $tarball
163166 EOF
164167 displayName: Create npm-tarball-to-zip.sh
You can’t perform that action at this time.
0 commit comments