Skip to content

Commit

Permalink
send hydrogen version metadata in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
benwolfram committed Nov 14, 2024
1 parent 2a978cd commit 4a4d2e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1749,4 +1749,4 @@
}
},
"version": "9.0.2"
}
}
4 changes: 4 additions & 0 deletions packages/cli/src/commands/hydrogen/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import {prepareDiffDirectory} from '../../lib/template-diff.js';
import {isClassicProject} from '../../lib/remix-config.js';
import {packageManagers} from '../../lib/package-managers.js';
import {setupResourceCleanup} from '../../lib/resource-cleanup.js';
import {getHydrogenVersion} from './upgrade.js';

const DEPLOY_OUTPUT_FILE_HANDLE = 'h2_deploy_log.json';

Expand Down Expand Up @@ -302,6 +303,8 @@ export async function runDeploy(
}
}

const metadataHydrogenVersion = (await getHydrogenVersion({appPath: root})).currentVersion;

const isCI = ciPlatform().isCI;
let token = options.token;
let branch: string | undefined | null;
Expand Down Expand Up @@ -484,6 +487,7 @@ export async function runDeploy(
...(metadataUrl ? {url: metadataUrl} : {}),
...(metadataUser ? {user: metadataUser} : {}),
...(metadataVersion ? {version: metadataVersion} : {}),
...(metadataHydrogenVersion ? {hydrogenVersion: metadataHydrogenVersion} : {}),
},
skipVerification: noVerify,
rootPath: root,
Expand Down
1 change: 1 addition & 0 deletions packages/cli/testing-ff
Submodule testing-ff added at 3b4f0f
1 change: 1 addition & 0 deletions testing-ff
Submodule testing-ff added at d3b735

0 comments on commit 4a4d2e5

Please sign in to comment.