Skip to content

build(deps-dev): bump @types/node from 20.17.48 to 20.17.57 #734

build(deps-dev): bump @types/node from 20.17.48 to 20.17.57

build(deps-dev): bump @types/node from 20.17.48 to 20.17.57 #734

Workflow file for this run

name: 'Check Diff'
on: [pull_request_target]
permissions:
pull-requests: write
jobs:
check-diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Check Diff
run: git diff --exit-code dist/index.js
- name: Diff comment
if: ${{ failure() }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Script diff found. Please run `npm run build` and commit the built script.'
})