@codedrifters/configulator 0.0.108 → 0.0.109
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/lib/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -8
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -338,8 +338,8 @@ var _TurboRepo = class _TurboRepo extends Component2 {
|
|
|
338
338
|
}
|
|
339
339
|
activateBranchNameEnvVar() {
|
|
340
340
|
this.addGlobalEnvVar(
|
|
341
|
-
"
|
|
342
|
-
"${
|
|
341
|
+
"GIT_BRANCH_NAME",
|
|
342
|
+
"${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
|
|
343
343
|
);
|
|
344
344
|
}
|
|
345
345
|
preSynthesize() {
|
|
@@ -398,7 +398,7 @@ var _TurboRepo = class _TurboRepo extends Component2 {
|
|
|
398
398
|
_TurboRepo.buildWorkflowOptions = (remoteCacheOptions) => {
|
|
399
399
|
return {
|
|
400
400
|
env: {
|
|
401
|
-
|
|
401
|
+
GIT_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
|
|
402
402
|
},
|
|
403
403
|
permissions: {
|
|
404
404
|
contents: JobPermission.WRITE,
|
|
@@ -441,7 +441,7 @@ var AwsDeploymentConfig = class _AwsDeploymentConfig extends Component3 {
|
|
|
441
441
|
this.project.tasks.tryFind("synth:silent")?.reset(`rm -rf ${this.cdkOut}`);
|
|
442
442
|
this.project.tasks.tryFind("synth:silent")?.exec(`cdk synth -q --output ${this.cdkOut}`, { env: this.env });
|
|
443
443
|
};
|
|
444
|
-
this.env = {
|
|
444
|
+
this.env = { GIT_BRANCH_NAME: "$(git branch --show-current)" };
|
|
445
445
|
this.projectPath = relative(project.root.outdir, project.outdir);
|
|
446
446
|
this.rootPath = relative(project.outdir, project.root.outdir);
|
|
447
447
|
this.rootCdkOut = join("dist", this.projectPath, "cdk.out");
|
|
@@ -1318,11 +1318,11 @@ var MonorepoProject = class extends TypeScriptAppProject {
|
|
|
1318
1318
|
packageManager: NodePackageManager2.PNPM,
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Some additional pre-build steps if we're using turbo's remote cache.
|
|
1321
|
-
* Set
|
|
1321
|
+
* Set GIT_BRANCH_NAME so Turborepo remote cache hashes match between local and CI.
|
|
1322
1322
|
*/
|
|
1323
1323
|
buildWorkflowOptions: {
|
|
1324
1324
|
env: {
|
|
1325
|
-
|
|
1325
|
+
GIT_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}",
|
|
1326
1326
|
...buildWorkflowOptions?.env,
|
|
1327
1327
|
...userOptions.buildWorkflowOptions?.env
|
|
1328
1328
|
},
|
|
@@ -1631,10 +1631,10 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component10 {
|
|
|
1631
1631
|
*/
|
|
1632
1632
|
...options.buildWorkflowOptions,
|
|
1633
1633
|
/**
|
|
1634
|
-
* Set
|
|
1634
|
+
* Set GIT_BRANCH_NAME so Turborepo remote cache hashes match between local and CI.
|
|
1635
1635
|
*/
|
|
1636
1636
|
env: {
|
|
1637
|
-
|
|
1637
|
+
GIT_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}",
|
|
1638
1638
|
...options.buildWorkflowOptions?.env,
|
|
1639
1639
|
...buildWorkflowOptions?.env
|
|
1640
1640
|
},
|