Fix release asset uploading

The `jspsych` package release previously didn't get a release asset.
This commit is contained in:
bjoluc 2021-12-01 17:03:31 +01:00
parent b2c171de64
commit ededae2a70

View File

@ -62,8 +62,8 @@ jobs:
let errorMessage;
for (const { name, version } of publishedPackages) {
const tag = `${name}@${version}`;
// Only upload the dist archive for the chore package, plugins, and extensions
if (name.startsWith("jspsych@") || name.includes("/plugin-") || name.includes("/extension-")) {
// Only upload the dist archive for the core package, plugins, and extensions
if (name === "jspsych" || name.includes("/plugin-") || name.includes("/extension-")) {
console.log(`Uploading dist archive release asset for ${tag}`);
try {
// https://docs.github.com/en/rest/reference/repos#get-a-release-by-tag-name