Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: lockfile change test #853

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .github/workflows/lockfile.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Check Lockfile
on: pull_request
on:
pull_request:
paths:
- 'package-lock.json'

jobs:
lockfile:
name: Lockfile check
lockfile_version:
name: Lockfile version check
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repo
Expand All @@ -11,3 +15,20 @@ jobs:
uses: mansona/npm-lockfile-version@v1
with:
version: 3
lockfile_changes:
name: Lockfile changes check
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v4
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.LOCKFILE_BOT_APP_ID }}
private-key: ${{ secrets.LOCKFILE_BOT_PRIVATE_KEY }}
- name: NPM Lockfile Changes
# The original doesn't support v3 lockfiles so we use a fork that adds support for them
uses: rvanvelzen/npm-lockfile-changes@6fded38b5a054f5ab49efd6850668e796f780604
with:
token: ${{ steps.app-token.outputs.token }}
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"map-obj": "^5.0.2",
"mime": "^4.0.3",
"multi-core-indexer": "^1.0.0-alpha.10",
"p-defer": "^4.0.0",
"p-defer": "^4.0.1",
"p-event": "^6.0.1",
"p-timeout": "^6.1.2",
"protobufjs": "^7.2.3",
Expand Down
Loading