Skip to content
JavaScript based npm new package version check action for GitHub Actions.
TypeScript Ruby
Branch: master
Clone or download
Latest commit d6f9003 Sep 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github add issue template Sep 28, 2019
__tests__ init Sep 28, 2019
lib update lib Sep 29, 2019
node_modules/@actions init Sep 28, 2019
src
.eslintrc.json
.gitattributes init Sep 28, 2019
.gitignore init Sep 28, 2019
Dangerfile add dangerfile Sep 28, 2019
Gemfile
LICENSE
README.md update README Sep 29, 2019
action.yml fix typo Sep 29, 2019
package-lock.json init Sep 28, 2019
package.json change npm lint Sep 29, 2019
tsconfig.json init Sep 28, 2019

README.md

npm-update-check-action


JavaScript based npm new package version check action for GitHub Actions.

Required

This action must execute after npm install for your dependencies.

Example

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@v1
    - run: npm install
    - uses: MeilCli/npm-update-check-action@v2
      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 }}

input

  • execute_directories
    • optional
    • execute directories of npm outdated command
    • if multiple directories, write multiline
  • depth
    • optional
    • max depth for checking dependency tree
  • output_text_style
    • optional
    • output text style
    • value: short or long, default: short

output

  • has_npm_update
    • has new package version information
    • value: true or false
  • npm_update_text
    • new package version information text, styled by output_text_style
  • npm_update_json
    • new package version information json

License

MIT License.

You can’t perform that action at this time.