Skip to content

Commit

Permalink
Upload package.json along with eas.json and project archive
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Dec 20, 2024
1 parent 1873a63 commit 178816f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eas-cli/src/commands/workflow/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default class WorkflowRun extends EasCommand {

let projectArchiveBucketKey: string;
let easJsonBucketKey: string;
let packageJsonBucketKey: string;

try {
({ projectArchiveBucketKey } = await uploadAccountScopedProjectSourceAsync({
Expand All @@ -94,6 +95,12 @@ export default class WorkflowRun extends EasCommand {
filePath: path.join(projectDir, 'eas.json'),
maxSizeBytes: 1024 * 1024,
}));
({ fileBucketKey: packageJsonBucketKey } = await uploadAccountScopedFileAsync({
graphqlClient,
accountId: account.id,
filePath: path.join(projectDir, 'package.json'),
maxSizeBytes: 1024 * 1024,
}));
} catch (err) {
Log.error('Failed to upload project sources.');

Expand All @@ -114,6 +121,7 @@ export default class WorkflowRun extends EasCommand {
type: WorkflowProjectSourceType.Gcs,
projectArchiveBucketKey,
easJsonBucketKey,
packageJsonBucketKey,
},
},
}
Expand Down

0 comments on commit 178816f

Please sign in to comment.