Skip to content

Commit

Permalink
(feat) add npm lock diff action
Browse files Browse the repository at this point in the history
  • Loading branch information
ictbeheer committed Jun 10, 2024
1 parent cb56c3a commit 102df99
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-lock-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: NPM Lockfile Changes
on:
pull_request:
paths:
- 'package-lock.json'

jobs:
lockfile_changes:
runs-on: ubuntu-latest
# Permission overwrite is required for Dependabot PRs, see "Common issues" below.
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: NPM Lockfile Changes
uses: codepunkt/npm-lockfile-changes@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Optional inputs, can be deleted safely if you are happy with default values.
collapsibleThreshold: 25
failOnDowngrade: false
path: package-lock.json
updateComment: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor
/node_modules

0 comments on commit 102df99

Please sign in to comment.