Skip to content

Commit

Permalink
[eas-cli] Add environment flag to deploy script (#2763)
Browse files Browse the repository at this point in the history
* Ensure worker env flag is passed through

* Add changelog
  • Loading branch information
kadikraman authored Dec 11, 2024
1 parent 17661d1 commit bc282b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is the log of notable changes to EAS CLI and related packages.

- Remove random branch name generation for --auto branch name non-vcs fallback. ([#2747](https://github.com/expo/eas-cli/pull/2747) by [@wschurman](https://github.com/wschurman))
- Upgrade @expo/multipart-body-parser. ([#2751](https://github.com/expo/eas-cli/pull/2751) by [@wschurman](https://github.com/wschurman))
- Pass env var flag to worker deployments. ([#2763](https://github.com/expo/eas-cli/pull/2763) by [@kadikraman](https://github.com/kadikraman))

### 🧹 Chores

Expand Down
8 changes: 3 additions & 5 deletions packages/eas-cli/src/commands/worker/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface DeployFlags {

interface RawDeployFlags {
'non-interactive': boolean;
environment?: string;
environment?: EnvironmentVariableEnvironment;
json: boolean;
prod: boolean;
alias?: string;
Expand Down Expand Up @@ -96,10 +96,7 @@ export default class WorkerDeploy extends EasCommand {
description: 'Outputs a tarball of the new deployment instead of uploading it.',
default: false,
}),
environment: {
...EASEnvironmentFlag.environment,
description: 'Deploy with EAS Environment Variables matching the specified environment.',
},
...EASEnvironmentFlag,
...EasNonInteractiveAndJsonFlags,
};

Expand Down Expand Up @@ -398,6 +395,7 @@ export default class WorkerDeploy extends EasCommand {
aliasName: flags.alias?.trim().toLowerCase(),
deploymentIdentifier: flags.id?.trim(),
exportDir: flags['export-dir'],
environment: flags['environment'],
dryRun: flags['dry-run'],
};
}
Expand Down

0 comments on commit bc282b6

Please sign in to comment.