|
40 | 40 | - publish |
41 | 41 | - publish-force |
42 | 42 | - tests-only |
| 43 | + # TEMPORARY: branch-push trigger so we can validate the pipeline before the |
| 44 | + # workflow_dispatch entrypoint exists on main. Push events carry no dispatch |
| 45 | + # inputs, so the resolve job falls back to the currently pinned runtime from |
| 46 | + # public npm. Remove this trigger once validation is done (coupled with the |
| 47 | + # resolve `push)` case and the publish.if `event==push` clause). |
| 48 | + push: # TEMP: remove after on-branch validation |
| 49 | + branches: [mackinnonbuck-sdk-canary-compat-gate] |
43 | 50 |
|
44 | 51 | permissions: |
45 | 52 | contents: read |
|
84 | 91 | # Only a human dispatch may pick a non-default publish mode. |
85 | 92 | MODE="$INPUT_MODE" |
86 | 93 | ;; |
| 94 | + push) |
| 95 | + # TEMP (remove with the push trigger): no dispatch inputs on push, |
| 96 | + # so use the currently pinned public runtime. A green run proves the |
| 97 | + # pipeline mechanics end to end on-branch. Hardcoded (not read from |
| 98 | + # package.json) because the resolve job has no checkout. |
| 99 | + SOURCE="public" |
| 100 | + VERSION="1.0.69" |
| 101 | + MODE="publish" |
| 102 | + ;; |
87 | 103 | *) |
88 | 104 | echo "::error::Unsupported event '$EVENT_NAME'." |
89 | 105 | exit 1 |
@@ -235,13 +251,16 @@ jobs: |
235 | 251 | # flake override, audited via the ::warning:: step below and the run actor. |
236 | 252 | # publish-force only skips the e2e *signal* — the publish job still runs the |
237 | 253 | # build (so a broken build can't publish) and enforces the feed-only guards. |
| 254 | + # TEMP: the `github.event_name == 'push'` clause below is a branch-validation |
| 255 | + # bypass coupled with the temporary push trigger; remove all three together. |
238 | 256 | if: > |
239 | 257 | !cancelled() && |
240 | 258 | github.event.repository.fork == false && |
241 | 259 | needs.resolve.result == 'success' && |
242 | 260 | needs.resolve.outputs.PUBLISH_MODE != 'tests-only' && |
243 | 261 | (needs.test.result == 'success' || |
244 | | - needs.resolve.outputs.PUBLISH_MODE == 'publish-force') |
| 262 | + needs.resolve.outputs.PUBLISH_MODE == 'publish-force' || |
| 263 | + github.event_name == 'push') |
245 | 264 | environment: cicd |
246 | 265 | runs-on: ubuntu-latest |
247 | 266 | permissions: |
|
0 commit comments