feat(localization): DLT-2452 setup i18n #3785
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: Lint PR Title | |
| on: | |
| pull_request: | |
| types: ['opened', 'edited', 'reopened', 'synchronize'] | |
| branches: | |
| - staging | |
| jobs: | |
| commit-lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: read | |
| steps: | |
| - name: Check out branch | |
| uses: actions/checkout@v4 | |
| - name: Use pnpm | |
| uses: pnpm/action-setup@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "pnpm" | |
| registry-url: "https://npm.pkg.github.com" | |
| scope: "dialpad" | |
| env: | |
| NODE_AUTH_TOKEN: ${{ github.token }} | |
| - name: Install dependencies | |
| shell: bash | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint pull request title | |
| run: | | |
| echo "The PR's title should adhere to the commit message convention." | |
| echo "correct format: <type>(<scope>): <jira> <subject>" | |
| echo "example: feat: DLT-123 add dialbot icon" | |
| pnpm commitlint --verbose << EOF | |
| ${{ github.event.pull_request.title }} | |
| EOF |