Skip to content

Merge branch 'release/3.6.0' #239

Merge branch 'release/3.6.0'

Merge branch 'release/3.6.0' #239

Workflow file for this run

# Inspired by @action/checkout
#
# Compares the checked in `dist/index.js` with the PR's `dist/index.js`
# On mismatch this action fails
name: Verify dist
on:
push:
branches:
- master
- release/**
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
check-dist:
name: Verify dist/index.js file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Use volta
uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- name: Install dependencies
run: yarn install
- name: Rebuild dist
run: yarn build
- name: Compare expected and actual dist
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. Did you forget to commit `dist/index.js`?"
echo "Diff:"
git diff
exit 1
fi