Commit c0eba9e
fix(ci): isolate test job from publish to avoid clobbered dist (#49)
Split release workflow into test → release → storybook jobs so the
release job no longer runs `npm test`. The `stencil-test` binary from
@stencil/vitest runs `stencil build --dev` before tests, which
overwrote the prod dist produced by the prior build step and left
the published tarball missing `dist/esm/`, `dist/cjs/`,
`dist/collection/`, `dist/index.{js,cjs.js}`, and
`dist/components/*.js` — the root cause of the broken 0.7.0 publish
of @smartcompanion/ui.
Also tightens permissions to least-privilege per job and adds a lint
gate to the tag-push pipeline (tags are excluded from ci.yml).
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent af14b10 commit c0eba9e
1 file changed
Lines changed: 36 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
14 | 38 | | |
| 39 | + | |
15 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
16 | 44 | | |
17 | 45 | | |
18 | 46 | | |
| |||
38 | 66 | | |
39 | 67 | | |
40 | 68 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
| |||
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
59 | | - | |
| 81 | + | |
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
| |||
70 | 92 | | |
71 | 93 | | |
72 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
73 | 99 | | |
74 | 100 | | |
75 | 101 | | |
| |||
0 commit comments