Skip to content

Commit

Permalink
Force using esbuild@0.18.20 for both deps
Browse files Browse the repository at this point in the history
  • Loading branch information
parzhitsky committed Sep 9, 2023
1 parent df3fcfe commit 7910ab1
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 138 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/notify-outdated-overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Notify when 'overrides' in '/package.json' might have became outdated

on:
push:
paths:
- '**/package*.json'

jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '/.nvmrc'

- name: Find override targets
run: |2
override_targets=$(node -p "Object.keys(require('./package.json').overrides).join('\n')")
target_none=$RANDOM
failed_target=$target_none
for target in $override_targets; do
if ! npm ls "$target"; then
failed_target=$target
break
fi
done
if [ "$failed_target" != "$target_none" ]; then
echo ⛔️ Override target "$failed_target" is not found as a dependency
exit 1
else
echo ✅ All override targets found
fi
Loading

0 comments on commit 7910ab1

Please sign in to comment.