Skip to content

Commit 5a51754

Browse files
chore: Bulk update dependencies (#587)
* Use rollup instead of ncc * Update GHA versions * Fix type issues in GHA imports * Fix text-readability types * Upgrade to eslint 9 * Upgrade glob * Upgrade typescript * Update remark * Upgrade FE dependencies * Fix minify issue * Commit build via cli * Use machine user PAT for dist generation * chore: rebuild dist * test by touching markdown * Revert "test by touching markdown" This reverts commit 70e1996. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 38e52bf commit 5a51754

12 files changed

Lines changed: 58432 additions & 67187 deletions

File tree

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/pr-checks.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ jobs:
4444
run: yarn test
4545

4646
build:
47-
name: Check build is committed
47+
name: Commit build
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout repo
5151
uses: actions/checkout@v6
52+
with:
53+
ref: ${{ github.head_ref }}
54+
token: ${{ secrets.MACHINE_USER_PAT }}
5255
- name: Setup node
5356
uses: actions/setup-node@v6
5457
with:
@@ -62,10 +65,20 @@ jobs:
6265
run: yarn
6366
- name: Build
6467
run: yarn build
65-
- name: Ensure that the committed dist matches the build
66-
# See if there are any diffs in the dist file. Grep returns an error
67-
# when there are no changes, so we flip the output
68-
run: (git diff --name-only | grep dist/index.js || exit 0 && exit 1)
68+
- name: Commit updated dist if it differs from build
69+
run: |
70+
if ! git diff --quiet dist/; then
71+
if [ "$(git log -1 --format='%an')" = "github-actions[bot]" ]; then
72+
echo "::error::dist still differs after a CI rebuild - a dependency may produce non-deterministic output"
73+
git diff --text dist/
74+
exit 1
75+
fi
76+
git config user.name "github-actions[bot]"
77+
git config user.email "github-actions[bot]@users.noreply.github.com"
78+
git add dist/
79+
git commit -m "chore: rebuild dist"
80+
git push
81+
fi
6982
7083
build-playground:
7184
name: Build the playground

0 commit comments

Comments
 (0)