Create pull requests for the latest version of NPM packages
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
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