refactor: let the package define what the null module exports #1192
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: Generate | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| commit: | |
| name: Generate code | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Import GPG key | |
| uses: crazy-max/ghaction-import-gpg@v7 | |
| with: | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| git_committer_name: ${{ secrets.GIT_USER_NAME }} | |
| git_committer_email: ${{ secrets.GIT_USER_EMAIL }} | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| install_dependencies: 'false' | |
| - name: Setup Node.js | |
| uses: ./.github/actions/setup-node | |
| with: | |
| install_dependencies: 'false' | |
| - name: Normalize uv.lock | |
| run: uv lock | |
| - name: Normalize package-lock.json | |
| run: npm install | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Generate code | |
| run: npm run generate | |
| - name: Commit | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: 'ci: Generate code' | |
| commit_user_name: ${{ secrets.GIT_USER_NAME }} | |
| commit_user_email: ${{ secrets.GIT_USER_EMAIL }} | |
| commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}> |