@orchagent/cli 0.3.66 → 0.3.67
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.
- package/dist/commands/publish.js +3 -1
- package/package.json +1 -1
package/dist/commands/publish.js
CHANGED
|
@@ -339,9 +339,11 @@ function registerPublishCommand(program) {
|
|
|
339
339
|
const cwd = process.cwd();
|
|
340
340
|
// Resolve workspace context — if `orch workspace use` was called, publish
|
|
341
341
|
// to that workspace instead of the personal org (F-5)
|
|
342
|
+
// Skip workspace resolution when using a named profile — the global
|
|
343
|
+
// workspace belongs to the default profile's context, not the named one.
|
|
342
344
|
const configFile = await (0, config_1.loadConfig)();
|
|
343
345
|
let workspaceId;
|
|
344
|
-
if (configFile.workspace) {
|
|
346
|
+
if (configFile.workspace && !options.profile) {
|
|
345
347
|
const { workspaces } = await (0, api_1.request)(config, 'GET', '/workspaces');
|
|
346
348
|
const ws = workspaces.find(w => w.slug === configFile.workspace);
|
|
347
349
|
if (!ws) {
|
package/package.json
CHANGED