Skip to content

Commit

Permalink
Add lockfile change workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kawikabader committed Sep 20, 2023
1 parent d2fe46b commit c528e72
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Workflow to run CI and tests for all branches on push and on pull requests

name: CI

on:
Expand All @@ -14,10 +12,11 @@ jobs:

strategy:
matrix:
node-version: [16.x,18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Checkout Repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: NPM Lockfile Changes

on: [pull_request]

jobs:
lockfile_changes:
runs-on: ubuntu-latest
# Permission overwrite is required for Dependabot PRs
permissions:
pull-requests: write
steps:
- name: Checkout Repository
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

0 comments on commit c528e72

Please sign in to comment.