https://github.com/archergu/npm-upstream-check
Check the updates of upstream npm dependencies
https://github.com/archergu/npm-upstream-check
actions npm npm-package
Last synced: 8 months ago
JSON representation
Check the updates of upstream npm dependencies
- Host: GitHub
- URL: https://github.com/archergu/npm-upstream-check
- Owner: ArcherGu
- License: mit
- Created: 2023-10-17T01:04:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T19:07:42.000Z (about 1 year ago)
- Last Synced: 2025-05-05T20:28:53.573Z (about 1 year ago)
- Topics: actions, npm, npm-package
- Language: TypeScript
- Homepage:
- Size: 2.47 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Npm Upstream Check
[](https://github.com/ArcherGu/npm-upstream-check/actions/workflows/ci.yml)
## Usage
Your npm package may depend on another npm package, and when the upstream package is updated, you may need to make some changes, and this action can help you.
## Example
```yaml
- name: Check npm upstream
id: cnu
uses: ArcherGu/npm-upstream-check@v1
with:
upstream: esbuild
- name: Get the outputs
run: |
echo "Need Update: ${{ steps.cnu.outputs.need-update }}"
echo "Dependencies: ${{ steps.cnu.outputs.dependencies }}"
```
## Inputs
- `upstream`: The upstream package name
- required
- example: `esbuild` or `esbuild,rollup`
- `deep`: Deep check, e.g. monorepo
- optional
- default: `false`
- `check-only`: Only check, not update package.json
- optional
- default: `false`
- `all`: Check all dependencies, not just upstream
- optional
- default: `false`
## Outputs
- `need-update`: Whether the dependencies need to be updated
- example: `true` or `false`
- `dependencies`: The dependencies that need to be updated, in JSON string format
- example: `{"esbuild": "^0.13.0"}`
## License
MIT License © 2023 [Archer Gu](https://github.com/archergu)