Skip to content

thzero/ncu-upgrade

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ncu-upgrade

GitHub package.json version David License: MIT

Usage

This GitHub action will run the command ncu (tjunnone/npm-check-updates) and will return a value if any dependency need to be updated.

Outputs

  • upgraded ('1' or '0' as string) - Whether dependencies were upgraded
  • upgrades (string) - Packages that were upgraded, if any

Example

name: Test released version

on: [push]

jobs:
  test_released_job:
    runs-on: ubuntu-latest
    name: A job to test the latest released ncu-upgrade
    steps:
    - name: Test the released step
      id: test_released
      uses: thzero/ncu-upgrade@v1

NCC Issue

There is an issue with NCC and the @npmcli/run-script package due to node-gyp. As such, currently, the @npmcli/run-script must be pulled into the dist folder directly.