Tidy up dependencies #2419
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
| name: Website Integrity | |
| on: | |
| pull_request: | |
| paths: | |
| - 'website/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| website-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Fetch | |
| run: git fetch origin master | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| standalone: true | |
| cache: true | |
| - name: Install Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| - name: Install packages | |
| run: pnpm install | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Build Website | |
| run: pnpm --filter=website run build | |
| - name: Compare | |
| run: git diff origin/${{ github.base_ref }}.. -- website/route-lockfile.txt | |
| - name: Diff to file | |
| if: always() | |
| id: diff_result | |
| run: | | |
| OUTPUT=$(git diff origin/${{ github.base_ref }}.. -- website/route-lockfile.txt) | |
| OUTPUT="${OUTPUT//'%'/'%25'}" | |
| OUTPUT="${OUTPUT//$'\n'/'%0A'}" | |
| OUTPUT="${OUTPUT//$'\r'/'%0D'}" | |
| echo "::set-output name=result::$OUTPUT" | |
| - name: Publish a message | |
| if: always() && contains(steps.diff_result.outputs.result, 'diff') | |
| uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3 | |
| with: | |
| message: | | |
| ```diff | |
| ${{ steps.diff_result.outputs.result }} | |
| ``` |