Merge pull request #356 from ComBuildersES/all-contributors/add-ajime… #152
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: Validate data and build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.0.2 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Fetch PR base branch | |
| if: github.event_name == 'pull_request' | |
| run: git fetch origin ${{ github.base_ref }} --depth=1 | |
| - name: Validate changed communities against base branch | |
| if: github.event_name == 'pull_request' | |
| run: node scripts/validate-community-data.js --strict-changed --baseline-ref origin/${{ github.base_ref }} | |
| - name: Build the project | |
| run: npm run build |