Repository navigation
Commit dae5769
Fix release script bundler frozen mode and docs build error handling
setup-ruby's `bundler-cache: true` sets frozen mode, which prevents
`bundle install` from updating Gemfile.lock after script/release
bumps the gemspec version. The stale lockfile then makes
`bundle exec rake docs:build` fail with:
The gemspecs for path gems changed, but the lockfile can't be updated
because frozen mode is set
Because the script had no error handling on that command, the failure
was silently ignored and the release PR was pushed with unbuilt docs.
Fix both problems:
- Export BUNDLE_FROZEN=false and BUNDLE_DEPLOYMENT=false at the top of
the script so every bundler invocation can rewrite the lockfile.
- Switch `update_gemfiles` from `bundle` (install) to `bundle lock`,
matching the appraisal loop — we only need the lockfile refreshed,
gems are already installed by setup-ruby.
- Fail the script when `sync_contributors.rb` or `rake docs:build`
returns non-zero, so a broken release cannot be pushed.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 217f0a0d-a9f2-4607-9643-5fcb3e34f20f1 parent aaca93b commit dae5769
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
57 | | - | |
58 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
69 | | - | |
70 | | - | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
0 commit comments