π release @onruntime/next-sitemap v0.9.1 #52
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] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'github-actions[bot]' | |
| env: | |
| CI: true | |
| NEXT_PUBLIC_APP_URL: "https://onruntime.com" | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Generate translations | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: pnpm --filter @onruntime/web translate | |
| - name: Commit translations | |
| if: github.ref == 'refs/heads/master' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add apps/web/src/locales/ apps/web/src/content/ | |
| if ! git diff --staged --quiet; then | |
| FILES_CHANGED=$(git diff --staged --name-only | wc -l | tr -d ' ') | |
| git commit -m "π update ${FILES_CHANGED} translations files" | |
| git push | |
| fi | |
| - name: Test | |
| run: pnpm test | |
| - name: Build | |
| run: pnpm build |