Commit 02e810e
committed
feat(publish): warn when publishing from a non-default branch
Publishing from a feature or release branch is almost always unintentional.
Check the current branch at the start of publishWorkflow and emit a warning
if it differs from options.branch.default so the operator is informed before
any packages are pushed to the registry.1 parent b2cdb27 commit 02e810e
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
118 | 127 | | |
119 | 128 | | |
120 | 129 | | |
| |||
0 commit comments