mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 16:09:05 +00:00
### **PR Type**
Enhancement
___
### **Description**
- Add weekly automated npm update workflow
- Check and update outdated packages when needed
- Run type checks, unit tests, and build steps
- Commit changes and create pull request automatically
___
### Diagram Walkthrough
```mermaid
flowchart LR
Sched["Weekly schedule or manual trigger"]
Clone["Checkout repository"]
Setup["Setup Node.js environment"]
Check["Check for outdated packages"]
NoUpdates["All packages up to date"]
Update["Update dependencies"]
Test["Run type check & tests & build"]
Commit["Commit & push changes"]
PR["Create Pull Request"]
Sched --> Clone
Clone --> Setup
Setup --> Check
Check -- "no updates" --> NoUpdates
Check -- "updates found" --> Update
Update --> Test
Test --> Commit
Commit --> PR
```
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Configuration
changes</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>npm-update.yml</strong><dd><code>Add NPM dependencies
update workflow</code>
</dd></summary>
<hr>
.github/workflows/npm-update.yml
<ul><li>Added weekly scheduled npm update workflow<br> <li> Configured
checkout, Node.js setup, and git user<br> <li> Implemented outdated
check and conditional updates<br> <li> Automated type check, tests,
build, commit, and PR creation</ul>
</details>
</td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9739/files#diff-0c30a473c3140f6e541f563e4efad9f8fbcdf396673e5fef4fbd479ef3904b8e">+177/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
</details>
___