@elliemae/pui-cli 8.55.5 → 8.55.7-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,27 +9,22 @@ module.exports = {
|
|
|
9
9
|
success: async (pluginConfig, context) => {
|
|
10
10
|
const { nextRelease, logger } = context;
|
|
11
11
|
|
|
12
|
-
// Debug: log what we receive
|
|
13
|
-
logger?.log?.('Plugin context keys:', Object.keys(context));
|
|
14
|
-
logger?.log?.('nextRelease:', nextRelease ? 'present' : 'undefined');
|
|
15
|
-
|
|
16
12
|
if (!nextRelease) {
|
|
17
13
|
logger?.log?.('No release information available');
|
|
18
14
|
return;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
if (!nextRelease.channel) {
|
|
18
|
+
nextRelease.channel = 'latest';
|
|
19
|
+
}
|
|
22
20
|
const fname = path.join(process.cwd(), 'publish-info.json');
|
|
23
21
|
|
|
24
22
|
try {
|
|
25
23
|
fs.writeFileSync(fname, JSON.stringify(nextRelease, null, 2));
|
|
26
24
|
logger?.log?.(`Wrote publish info to ${fname}`);
|
|
27
|
-
logger?.log?.(`Distribution tag set to: ${distTag}`);
|
|
28
25
|
} catch (error) {
|
|
29
26
|
logger?.error?.(`Failed to write publish info: ${error.message}`);
|
|
30
27
|
throw error;
|
|
31
28
|
}
|
|
32
|
-
|
|
33
|
-
process.env.DIST_TAG = distTag;
|
|
34
29
|
},
|
|
35
30
|
};
|
|
@@ -9,27 +9,22 @@ module.exports = {
|
|
|
9
9
|
success: async (pluginConfig, context) => {
|
|
10
10
|
const { nextRelease, logger } = context;
|
|
11
11
|
|
|
12
|
-
// Debug: log what we receive
|
|
13
|
-
logger?.log?.('Plugin context keys:', Object.keys(context));
|
|
14
|
-
logger?.log?.('nextRelease:', nextRelease ? 'present' : 'undefined');
|
|
15
|
-
|
|
16
12
|
if (!nextRelease) {
|
|
17
13
|
logger?.log?.('No release information available');
|
|
18
14
|
return;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
if (!nextRelease.channel) {
|
|
18
|
+
nextRelease.channel = 'latest';
|
|
19
|
+
}
|
|
22
20
|
const fname = path.join(process.cwd(), 'publish-info.json');
|
|
23
21
|
|
|
24
22
|
try {
|
|
25
23
|
fs.writeFileSync(fname, JSON.stringify(nextRelease, null, 2));
|
|
26
24
|
logger?.log?.(`Wrote publish info to ${fname}`);
|
|
27
|
-
logger?.log?.(`Distribution tag set to: ${distTag}`);
|
|
28
25
|
} catch (error) {
|
|
29
26
|
logger?.error?.(`Failed to write publish info: ${error.message}`);
|
|
30
27
|
throw error;
|
|
31
28
|
}
|
|
32
|
-
|
|
33
|
-
process.env.DIST_TAG = distTag;
|
|
34
29
|
},
|
|
35
30
|
};
|