Skip to content

build(deps): bump actions/setup-node from 1.4.6 to 4.2.0 #2901

build(deps): bump actions/setup-node from 1.4.6 to 4.2.0

build(deps): bump actions/setup-node from 1.4.6 to 4.2.0 #2901

Workflow file for this run

name: "PR diff bot"
on: [pull_request]
permissions: read-all
jobs:
build:
name: PR diff bot
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: 18.x
- name: Checkout base branch
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
with:
ref: ${{ github.base_ref }}
- name: Record before stats
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: |
mkdir .diff
npm ci
npm run build
cat packages/browser/dist/bugsnag.min.js | wc -c > .diff/size-before-minified
cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .diff/size-before-gzipped
- name: Checkout PR branch
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
with:
clean: false
- name: Record after stats
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: |
npm ci
npm run build
cat packages/browser/dist/bugsnag.min.js | wc -c > .diff/size-after-minified
cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .diff/size-after-gzipped
- name: Run danger
uses: danger/danger-js@eaab0aa05301018d1a6d2d63ef493109616bb120 # 9.1.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}