Skip to content

Commit

Permalink
wip: add checks for backend too
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Dec 17, 2024
1 parent 0c1942b commit 43e5240
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/lockfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ jobs:
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v4
- name: Check package-lock.json version has not been changed
- name: Check app package-lock.json version has not been changed
uses: mansona/npm-lockfile-version@v1
with:
version: 3
- name: Move to backend directory
run: cd ./src/backend
- name: Check backend package-lock.json version has not been changed
uses: mansona/npm-lockfile-version@v1
with:
version: 3

lockfile_changes:
name: Lockfile changes check
runs-on: ubuntu-latest
Expand All @@ -25,10 +32,16 @@ jobs:
with:
app-id: ${{ vars.LOCKFILE_BOT_APP_ID }}
private-key: ${{ secrets.LOCKFILE_BOT_PRIVATE_KEY }}
- name: NPM Lockfile Changes
- name: App lockfile Changes
# The original doesn't support v3 lockfiles so we use a fork that adds support for them
# The fork doesn't update comments by an app token, so we use our own fork
uses: digidem/npm-lockfile-changes@614dfc33742374cb40bec2878e5b690580d11ede
with:
token: ${{ steps.app-token.outputs.token }}
updateComment: true
- name: Backend lockfile Changes
uses: digidem/npm-lockfile-changes@614dfc33742374cb40bec2878e5b690580d11ede
with:
token: ${{ steps.app-token.outputs.token }}
updateComment: true
path: './src/backend/package-lock.json'

0 comments on commit 43e5240

Please sign in to comment.