Repository navigation
removing redundant guides for payables #706
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: Check - markdown formatting | |
| on: | |
| pull_request: | |
| paths: | |
| - 'blog/**/*.md' | |
| - 'blog/**/*.mdx' | |
| - 'docs/**/*.md' | |
| - 'docs/**/*.mdx' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'blog/**/*.md' | |
| - 'blog/**/*.mdx' | |
| - 'docs/**/*.md' | |
| - 'docs/**/*.mdx' | |
| jobs: | |
| markdown-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| # The repo .npmrc is credential-less; inject feed creds into ~/.npmrc | |
| - name: Authenticate to codat-npm feed | |
| run: | | |
| { | |
| echo "//pkgs.dev.azure.com/codat/Codat/_packaging/codat-npm/npm/registry/:username=codat" | |
| echo "//pkgs.dev.azure.com/codat/Codat/_packaging/codat-npm/npm/registry/:_password=${ADO_NPM_FEED_TOKEN}" | |
| echo "//pkgs.dev.azure.com/codat/Codat/_packaging/codat-npm/npm/registry/:email=npm-requires-email@example.com" | |
| } >> ~/.npmrc | |
| env: | |
| ADO_NPM_FEED_TOKEN: ${{ secrets.ADO_NPM_FEED_TOKEN }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check markdown formatting with Prettier | |
| run: npm run format:mdx:check |