Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

msudgh/actions-npm-check-updates

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GitHub tag (latest SemVer) MIT License

Create pull requests for the latest version of NPM packages

Usage

Here is an example workflow to update NPM packages with scheduled runs:

name: Update NPM packages

on:
  # Allow manual triggers.
  workflow_dispatch:

  # Automatically run once a week.
  schedule:
    - cron: "0 0 1 * SAT"

jobs:
  update-packages:
    runs-on: ubuntu-latest
    steps:
      - name: Update packages
        uses: msudgh/actions-npm-check-updates@v0.1.2

Inputs

Name Description Default
node-version Node.js version for the updater 18.16.0
npm-version NPM version for the updater 1.2.2
base-branch Git branch name as the base main
pr-body The body of the pull request Automated changes by actions-npm-check-updates GitHub action

An example of using the inputs:

name: Update NPM packages

on:
  # Allow manual triggers.
  workflow_dispatch:

  # Automatically run once a week.
  schedule:
    - cron: "0 0 1 * SAT"

jobs:
  update-packages:
    runs-on: ubuntu-latest
    steps:
      - name: Update packages
        uses: msudgh/actions-npm-check-updates@v0.1.2
        with:
          node-version: 18.16.0
          npm-version: 1.2.2
          base-branch: main
          pr-body: |
            Automated changes by actions-npm-check-updates

About

GitHub Action for updating NPM packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published