Commit 3e048c1
authored
chore: use locked version of cdk-generate-synthetic-examples (#36242)
### Reason for this change
The repository was using `npx cdk-generate-synthetic-examples@latest` which could lead to unexpected builds due to the latest version being used. This change locks the version to ensure reproducible builds. It also allows us to release changes to `cdk-generate-synthetic-examples` without having to worry much about the implications on this repo.
### Description of changes
- Updated `cdk-generate-synthetic-examples` from `^0.2.32` to `^0.2.36` in package.json
- Added npm scripts `rosetta` and `synthetic-examples` to use locked versions via yarn
- Updated `scripts/run-rosetta.sh` to use `yarn run` instead of `npx` for both tools
- Removed init template upgrades from yarn-upgrade workflow (unrelated cleanup)
- Minor formatting fixes in yarn-upgrade workflow
This ensures all developers and CI use the same version of the synthetic examples generator, preventing potential inconsistencies.
### Describe any new or updated permissions being added
No new permissions are added.
### Description of how you validated changes
- Verified the scripts use the locked versions from package.json
- Confirmed yarn.lock contains the updated dependencies
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 5a8be4f commit 3e048c1
File tree
4 files changed
+42
-43
lines changed- .github/workflows
- scripts
4 files changed
+42
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
| 102 | + | |
| 103 | + | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | | - | |
| 116 | + | |
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3667 | 3667 | | |
3668 | 3668 | | |
3669 | 3669 | | |
3670 | | - | |
3671 | | - | |
3672 | | - | |
3673 | | - | |
3674 | | - | |
3675 | | - | |
3676 | | - | |
3677 | | - | |
3678 | 3670 | | |
3679 | 3671 | | |
3680 | 3672 | | |
| |||
3691 | 3683 | | |
3692 | 3684 | | |
3693 | 3685 | | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3694 | 3694 | | |
3695 | 3695 | | |
3696 | 3696 | | |
3697 | 3697 | | |
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
3701 | | - | |
3702 | | - | |
3703 | | - | |
3704 | | - | |
3705 | | - | |
3706 | | - | |
3707 | | - | |
3708 | 3701 | | |
3709 | 3702 | | |
3710 | 3703 | | |
| |||
3719 | 3712 | | |
3720 | 3713 | | |
3721 | 3714 | | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
3722 | 3722 | | |
3723 | 3723 | | |
3724 | 3724 | | |
| |||
6607 | 6607 | | |
6608 | 6608 | | |
6609 | 6609 | | |
6610 | | - | |
6611 | | - | |
6612 | | - | |
6613 | | - | |
| 6610 | + | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
6614 | 6614 | | |
6615 | | - | |
6616 | | - | |
| 6615 | + | |
| 6616 | + | |
6617 | 6617 | | |
6618 | 6618 | | |
6619 | 6619 | | |
| |||
10325 | 10325 | | |
10326 | 10326 | | |
10327 | 10327 | | |
10328 | | - | |
10329 | | - | |
10330 | | - | |
10331 | | - | |
| 10328 | + | |
| 10329 | + | |
| 10330 | + | |
| 10331 | + | |
10332 | 10332 | | |
10333 | | - | |
10334 | | - | |
| 10333 | + | |
| 10334 | + | |
10335 | 10335 | | |
10336 | 10336 | | |
10337 | | - | |
| 10337 | + | |
10338 | 10338 | | |
10339 | 10339 | | |
10340 | 10340 | | |
| |||
11961 | 11961 | | |
11962 | 11962 | | |
11963 | 11963 | | |
11964 | | - | |
11965 | | - | |
11966 | | - | |
11967 | | - | |
11968 | | - | |
11969 | 11964 | | |
11970 | 11965 | | |
11971 | 11966 | | |
11972 | 11967 | | |
11973 | 11968 | | |
| 11969 | + | |
| 11970 | + | |
| 11971 | + | |
| 11972 | + | |
| 11973 | + | |
11974 | 11974 | | |
11975 | 11975 | | |
11976 | 11976 | | |
| |||
0 commit comments