chore(deps): bump the patch-and-minor group across 1 directory with 4 updates #73
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
| # .github/workflows/link-check.yml | |
| name: Validate Internal and External Links | |
| on: | |
| push: | |
| branches: | |
| - main # Only check main/prod branch pushes | |
| pull_request: # Triggers on PRs targeting main | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 0 * * 0' # Run every Sunday at midnight | |
| workflow_dispatch: # Allows manual trigger | |
| jobs: | |
| link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout Repository | |
| uses: actions/checkout@v4 | |
| # --- Build Steps Added --- | |
| # These are necessary to test the site as it will be deployed | |
| - name: 🛠️ Setup Node.js Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x # Or your project's Node.js version | |
| cache: 'npm' | |
| - name: 📦 Install Dependencies | |
| run: npm ci | |
| - name: 🏗️ Build Website | |
| # IMPORTANT: Change 'npm run build' if your build command is different | |
| run: npm run build | |
| # --- End of Build Steps --- | |
| - name: 🔗 Check for Broken Links (lychee) | |
| uses: lycheeverse/[email protected] | |
| with: | |
| # Pass all inputs as a single 'args' string | |
| # This syntax is understood by v1, v2, and your linter | |
| args: >- | |
| --base ./dist | |
| --exclude 'linkedin.com' | |
| './dist/**/*.html' | |
| # You still need 'fail: true' as a separate input | |
| fail: true |