docs: update license copyright year #73
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: 'Format code' | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.png' | |
| - '**.jpg' | |
| - '**.avif' | |
| - '**.webp' | |
| - '**.mp4' | |
| - '**.webm' | |
| - '**.exe' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }}__format-code | |
| cancel-in-progress: true | |
| jobs: | |
| format: | |
| name: Format code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate a token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v1.8.1 | |
| with: | |
| app-id: ${{ secrets.CONTINUOUS_INTEGRATION_BOT_ID }} | |
| private-key: ${{ secrets.CONTINUOUS_INTEGRATION_BOT_KEY }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4.1.0 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4.2.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Format code with Prettier | |
| run: node --run format | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add . | |
| git diff-index --quiet HEAD || git commit -m "ci: format code" | |
| git push |