Skip to content

Commit 6850664

Browse files
author
Christopher-Marcel Böddecker
committed
fix(templates): correct folders for tarball to zip via bestzip
1 parent 0251d15 commit 6850664

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

templates/steps/cd.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ steps:
134134
"changelogTitle": "# Changelog"
135135
}],
136136
["@semantic-release/npm", {
137-
"tarballDir": "package"
137+
"tarballDir": "."
138138
}],
139139
["@semantic-release/git", {
140140
"message": "chore(release): set version to ${nextRelease.version}\n\n${nextRelease.notes}\n\nThis commit is a result of automation, thus CI shouldn't run (***NO_CI***).",
@@ -147,17 +147,14 @@ steps:
147147
"publishCmd": "bash npm-tarball-to-zip.sh"
148148
}],
149149
["@semantic-release/github", {
150-
"assets": [
151-
{"path": "package/*.zip"}
152-
]
150+
"assets": "*.zip"
153151
}]
154152
]
155153
}
156154
EOF
157155
displayName: Create semantic-release.template.json
158156
- bash: |
159157
cat > npm-tarball-to-zip.sh <<- "EOF"
160-
cd package
161158
tarball=$(npm list --depth 0 | sed "s/@/-/g; s/ .*/.tgz/g; 1q;")
162159
zipName=$(echo $tarball | sed -e "s/\.[^.]*$//").zip
163160
files=$(tar -tf $tarball | sed "s/^package\\///")

0 commit comments

Comments
 (0)