chore(deps): bump axios from 1.14.0 to 1.15.0 in /betanin_client (#152) #131
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: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test-frontend: | |
| name: Lint and test frontend | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: betanin_client | |
| - name: Lint | |
| run: npm run lint | |
| working-directory: betanin_client | |
| - name: Check formatting | |
| run: npm run check-formatting | |
| working-directory: betanin_client | |
| test-backend: | |
| name: Lint and test backend | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Lint and check formatting | |
| run: uv run ruff check $(git ls-files "*.py") && uv run ruff format --check $(git ls-files "*.py") | |
| release-please: | |
| name: Run Release Please | |
| runs-on: ubuntu-latest | |
| needs: [test-frontend, test-backend] | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| tag_name: ${{ steps.release.outputs.tag_name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Release Please | |
| uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| release-type: simple | |
| build-release: | |
| name: Build, tag, and publish Docker image | |
| runs-on: ubuntu-latest | |
| needs: [release-please] | |
| if: ${{ needs.release-please.outputs.release_created }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Login into DockerHub | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Login into GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.CR_PAT }} | |
| - name: Build and Push | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| push: true | |
| tags: | | |
| ghcr.io/${{ github.repository }}:${{ needs.release-please.outputs.tag_name }} | |
| ghcr.io/${{ github.repository }}:latest | |
| ${{ github.repository }}:${{ needs.release-please.outputs.tag_name }} | |
| ${{ github.repository }}:latest | |
| build-push-pypa: | |
| name: Build and push to PyPA | |
| runs-on: ubuntu-latest | |
| needs: [release-please] | |
| if: ${{ needs.release-please.outputs.release_created }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install frontend dependencies | |
| run: npm install | |
| working-directory: betanin_client | |
| - name: Build frontend | |
| run: npm run build | |
| working-directory: betanin_client | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Push to PyPA | |
| run: | | |
| set -e | |
| uv tool run --from build pyproject-build | |
| uv tool run twine upload --username "__token__" --password "${{ secrets.PYPI_TOKEN }}" --disable-progress-bar dist/* |