Bump mdast-util-to-hast from 13.2.0 to 13.2.1 #1200
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| repository_dispatch: | |
| types: [build] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - uses: actions/cache@v4 | |
| name: Cache python dependencies | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache node modules | |
| id: cache-npm | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| # npm cache files are stored in `~/.npm` on Linux/macOS | |
| path: ~/.npm | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
| name: List the state of node modules | |
| continue-on-error: true | |
| run: npm list | |
| - name: Install javascript dependencies | |
| run: | | |
| npm install | |
| - name: Run preprocess (make codelist data files) | |
| run: | | |
| npm run preprocess | |
| env: | |
| CODELISTS_BASE_URL: https://codelists.codeforiati.org | |
| - name: Run build (build static site) | |
| run: | | |
| npm run generate | |
| env: | |
| CODELISTS_BASE_URL: https://codelists.codeforiati.org | |
| - name: Copy API static files | |
| run: | | |
| cp -r api/* .output/public/api | |
| env: | |
| CODELISTS_BASE_URL: https://codelists.codeforiati.org | |
| - name: Deploy to github pages π | |
| if: github.ref == 'refs/heads/main' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| GIT_CONFIG_NAME: Code for IATI bot | |
| GIT_CONFIG_EMAIL: 57559326+codeforIATIbot@users.noreply.github.com | |
| GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: .output/public | |
| SINGLE_COMMIT: true | |
| CLEAN: true | |
| trigger: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Trigger a codelist update on the datastore classic repo | |
| if: github.ref == 'refs/heads/main' | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| repository: codeforIATI/iati-datastore | |
| token: ${{ secrets.TOKEN }} | |
| event-type: update-codelists |