deps(actions): bump actions/upload-pages-artifact from 3 to 4 #25
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: MIT OR AGPL-3.0-or-later | |
| # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell | |
| name: TypeScript/JavaScript Blocker | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Block new TypeScript/JavaScript | |
| run: | | |
| NEW_TS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(ts|tsx)$' | grep -v '\.gen\.' || true) | |
| NEW_JS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E '\.(js|jsx)$' | grep -v '\.res\.js$' | grep -v '\.gen\.' | grep -v 'node_modules' || true) | |
| if [ -n "$NEW_TS" ] || [ -n "$NEW_JS" ]; then | |
| echo "❌ New TS/JS files detected. Use ReScript instead." | |
| [ -n "$NEW_TS" ] && echo "$NEW_TS" | |
| [ -n "$NEW_JS" ] && echo "$NEW_JS" | |
| exit 1 | |
| fi | |
| echo "✅ ReScript policy enforced" |