npm new package version check action for GitHub Actions.
MIT License
npm new package version check action for GitHub Actions.
This action must execute after npm install
for your dependencies.
Slack notification example, using 8398a7/action-slack:
name: Check Package
on:
schedule:
- cron: '0 8 * * 5' # every friday AM 8:00
jobs:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- uses: MeilCli/npm-update-check-action@v5
id: outdated
- uses: 8398a7/action-slack@v2
if: steps.outdated.outputs.has_npm_update != 'false'
with:
status: ${{ job.status }}
text: ${{ steps.outdated.outputs.npm_update_text }}
author_name: GitHub Actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
You can also pin to a specific release version in the format @v5.x.x
execute_directories
depth
output_text_style
short
or long
, default: short
has_npm_update
true
or false
npm_update_text
output_text_style
npm_update_json
see Contributing.md