Skip to content

refactor: wire sentry backend #2551

refactor: wire sentry backend

refactor: wire sentry backend #2551

Workflow file for this run

name: Check Lockfile
on:
pull_request:
jobs:
lockfile_version:
name: Lockfile version check
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v7
- name: Check package-lock.json version has not been changed
# Fork allows passing 'path' option
uses: digidem/npm-lockfile-version@c42a24936edf4bdab05f57ff1f07781375a14f5c
with:
version: 3
path: package-lock.json
lockfile_changes:
name: Lockfile changes check
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v7
- 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
# The fork doesn't update comments by an app token, so we use our own fork
uses: digidem/npm-lockfile-changes@b896950dbf7427d281c2c9bfde5e16089a5d18bd
with:
token: ${{ steps.app-token.outputs.token }}
updateComment: true
path: package-lock.json