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 11, 2024
1 parent 15ce9c7 commit eff1842
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/composer-lock-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to make it possible to compare with PR base branch

Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/npm-lock-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: NPM Lockfile Changes
on:
pull_request:
paths:
- 'package-lock.json'

jobs:
lockfile_changes:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to make it possible to compare with PR base branch
- name: NPM Lockfile Changes
uses: codepunkt/npm-lockfile-changes@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
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 eff1842

Please sign in to comment.