Commit 0031e98
authored
ci: improve workflow robustness and performance (#197)
* ci: improve workflow robustness and performance
- Add concurrency controls to prevent duplicate workflow runs
- Implement job timeouts (10min quality, 30min test, 45min release)
- Replace hardcoded pnpm setup with Corepack for automatic version management
- Add pnpm store caching to speed up dependency installation
- Add matrix testing for Node.js 18, 20, and 22
- Add build verification steps before tests and releases
- Improve changeset validation with better error handling
- Fix biome format check with --unsafe flag for CI environment
- Add minimal permissions to release workflow for security
- Enhance dry run mode to show actual version changes
- Ensure only one release can run at a time
* ci: address code review feedback for workflow improvements
- Add explanatory comments for the --unsafe flag in format checks
- Fix script error handling by moving set -e to the beginning
- Use timestamp-based unique branch names for dry-run to prevent conflicts
* ci: improve workflow robustness based on code review feedback
- Add explanatory comments for the --unsafe flag in format checks
- Fix script error handling by moving set -e to the beginning
- Use GITHUB_RUN_ID for unique branch names to prevent conflicts
- Make build verification dynamic to discover packages automatically
- Fix git diff references in dry run by saving original HEAD
* ci: improve workflow reliability and fix formatting issues
- Replace hardcoded package paths with dynamic discovery in build verification
- Fix shell compatibility by avoiding command substitution in variable expansion
- Use 1135430206 instead of 1753700397 for better portability
- Save original HEAD reference before dry-run changes for accurate diffs
- Fix spacing in error messages for better readability
* ci: fix workflow consistency and dry-run git configuration
- Make build verification consistent between workflows by using dynamic package discovery
- Add git user configuration for dry-run to prevent changeset version errors
- Remove hardcoded package paths in release.yml to match tests.yaml approach
- Remove Node.js 18 from test matrix due to Firebase CLI v14 incompatibility1 parent b807700 commit 0031e98
2 files changed
+173
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| 26 | + | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
| |||
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
24 | | - | |
25 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
26 | 47 | | |
27 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
28 | 52 | | |
29 | 53 | | |
30 | 54 | | |
| |||
35 | 59 | | |
36 | 60 | | |
37 | 61 | | |
| 62 | + | |
38 | 63 | | |
39 | 64 | | |
40 | 65 | | |
| |||
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
51 | | - | |
52 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
53 | 87 | | |
54 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
| |||
70 | 107 | | |
71 | 108 | | |
72 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
73 | 131 | | |
74 | 132 | | |
75 | | - | |
76 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
77 | 140 | | |
78 | 141 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
84 | 149 | | |
85 | 150 | | |
86 | 151 | | |
| |||
101 | 166 | | |
102 | 167 | | |
103 | 168 | | |
104 | | - | |
105 | | - | |
| 169 | + | |
| 170 | + | |
106 | 171 | | |
107 | 172 | | |
108 | 173 | | |
109 | 174 | | |
110 | 175 | | |
111 | 176 | | |
112 | | - | |
113 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
114 | 206 | | |
115 | 207 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
25 | 40 | | |
26 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
27 | 45 | | |
28 | 46 | | |
29 | 47 | | |
| |||
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| 54 | + | |
36 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
37 | 59 | | |
38 | 60 | | |
39 | 61 | | |
40 | 62 | | |
41 | 63 | | |
42 | 64 | | |
43 | 65 | | |
44 | | - | |
| 66 | + | |
45 | 67 | | |
46 | 68 | | |
47 | | - | |
48 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
49 | 80 | | |
50 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
51 | 85 | | |
52 | 86 | | |
53 | 87 | | |
| |||
71 | 105 | | |
72 | 106 | | |
73 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
74 | 132 | | |
75 | 133 | | |
76 | 134 | | |
0 commit comments