Commit e098fa2
committed
ci: stop the release job re-running the test suite before it pushes
`pnpm install` reinstalls this repo's local pre-push gate, so every push the
release job makes re-ran the whole suite inside CI — 20,387 tests, 17 minutes,
on a commit CI had already tested. That is what failed the last release run:
the push held a stale lease for the whole window and was rejected.
On the publish path the same push carries the version tags and happens after
npm has already accepted the packages. One flaky test there, or the 30-minute
job timeout, would leave a published release untagged and skip every job that
follows it — docs, native artifacts, the extension, the tap, the CDN.
Two independent layers: SKIP_HOOKS, which the hook reads and which reaches the
pushes a JS action spawns, and deleting the hooks after install, which does not
depend on the environment surviving that hop. The delete resolves the hooks
directory through git rather than assuming .git/hooks, and fails the job if a
hook is still there afterwards.1 parent 98c0121 commit e098fa2
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
10 | 24 | | |
11 | 25 | | |
12 | 26 | | |
| |||
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
97 | 137 | | |
98 | 138 | | |
99 | 139 | | |
| |||
0 commit comments