@codedrifters/configulator 0.0.324 → 0.0.326

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.d.mts CHANGED
@@ -11044,6 +11044,16 @@ interface DeployWorkflowOptions {
11044
11044
  */
11045
11045
  readonly deployAfterTargets?: Array<AwsDeploymentTarget>;
11046
11046
  }
11047
+ /**
11048
+ * Adds a build + deploy GitHub Actions workflow for an AwsCdkTypeScriptApp.
11049
+ *
11050
+ * Deploy URLs are surfaced via a naming convention: any CfnOutput whose
11051
+ * logical ID ends in `Endpoint` is rendered into the PR sticky comment and
11052
+ * the job summary. See the docs page for the full convention and naming
11053
+ * guidance.
11054
+ *
11055
+ * @see docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow.md
11056
+ */
11047
11057
  declare class AwsDeployWorkflow extends Component {
11048
11058
  project: AwsCdkTypeScriptApp;
11049
11059
  options: DeployWorkflowOptions;
package/lib/index.d.ts CHANGED
@@ -11093,6 +11093,16 @@ interface DeployWorkflowOptions {
11093
11093
  */
11094
11094
  readonly deployAfterTargets?: Array<AwsDeploymentTarget>;
11095
11095
  }
11096
+ /**
11097
+ * Adds a build + deploy GitHub Actions workflow for an AwsCdkTypeScriptApp.
11098
+ *
11099
+ * Deploy URLs are surfaced via a naming convention: any CfnOutput whose
11100
+ * logical ID ends in `Endpoint` is rendered into the PR sticky comment and
11101
+ * the job summary. See the docs page for the full convention and naming
11102
+ * guidance.
11103
+ *
11104
+ * @see docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow.md
11105
+ */
11096
11106
  declare class AwsDeployWorkflow extends Component {
11097
11107
  project: AwsCdkTypeScriptApp;
11098
11108
  options: DeployWorkflowOptions;
package/lib/index.js CHANGED
@@ -35701,16 +35701,27 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen25.Compone
35701
35701
  * Render a job-summary table listing every `*Endpoint` output emitted
35702
35702
  * by the deploy. Also writes the same list to `deploy-urls.md` so the
35703
35703
  * follow-up sticky-PR-comment step can reuse it.
35704
+ *
35705
+ * The file is only created when jq returns at least one match — an
35706
+ * empty `deploy-urls.md` would pass the downstream `hashFiles(...)`
35707
+ * guard and then fail the sticky-comment action with
35708
+ * "Either message or path input is required" (issue #721).
35704
35709
  */
35705
35710
  {
35706
35711
  name: "Render deploy summary",
35707
35712
  if: "hashFiles('cdk-outputs.json') != ''",
35708
35713
  shell: "bash",
35709
35714
  run: [
35710
- 'echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35711
- `jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json | tee deploy-urls.md >> "$GITHUB_STEP_SUMMARY"`,
35712
- 'echo "" >> "$GITHUB_STEP_SUMMARY"',
35713
- 'echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"'
35715
+ '# Convention: CfnOutputs whose logical ID ends in "Endpoint" are surfaced.',
35716
+ "# See docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow#surfacing-deploy-urls",
35717
+ `endpoints=$(jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json)`,
35718
+ 'if [ -n "$endpoints" ]; then',
35719
+ ' echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35720
+ ' echo "$endpoints" >> "$GITHUB_STEP_SUMMARY"',
35721
+ ' echo "" >> "$GITHUB_STEP_SUMMARY"',
35722
+ ' echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"',
35723
+ ` printf '%s\\n' "$endpoints" > deploy-urls.md`,
35724
+ "fi"
35714
35725
  ].join("\n")
35715
35726
  },
35716
35727
  /**