From 13a93836d98d33f171c4f2072d645a833b5d1288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 24 Mar 2026 08:34:39 +0100 Subject: [PATCH] feat: do automatic bundling `make bundle` on the CI (#3889) Co-authored-by: alan --- .github/workflows/bundle.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/ci.yml | 5 ++++- .github/workflows/lint.yml | 7 ------- 3 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/bundle.yml diff --git a/.github/workflows/bundle.yml b/.github/workflows/bundle.yml new file mode 100644 index 000000000..6409d1ff9 --- /dev/null +++ b/.github/workflows/bundle.yml @@ -0,0 +1,29 @@ +name: bundle +on: + workflow_call: + +jobs: + bundle: + permissions: + contents: write + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + - uses: lnbits/lnbits/.github/actions/prepare@dev + with: + python-version: "3.10" + node-version: "24.x" + npm: true + - run: make bundle + - name: Commit and push bundle changes + run: | + git config user.name "alan" + git config user.email "alan@lnbits.com" + git add lnbits/static + if git diff --cached --quiet; then + exit 0 + fi + git commit -m "chore: make bundle [skip ci]" + git push diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc6bd091b..7e282b93b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,6 @@ on: jobs: - lint: uses: ./.github/workflows/lint.yml @@ -98,3 +97,7 @@ jobs: uses: ./.github/workflows/jmeter.yml with: python-version: ${{ matrix.python-version }} + + bundle: + needs: [ lint, test-api, test-wallets, test-unit, migration, openapi, regtest, jmeter ] + uses: ./.github/workflows/bundle.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 72468e1e9..4b3e4ff4a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,18 +25,11 @@ jobs: make: pyright npm: true - prettier: uses: ./.github/workflows/make.yml with: make: checkprettier npm: true - bundle: - uses: ./.github/workflows/make.yml - with: - make: checkbundle - npm: true - poetry: uses: ./.github/workflows/poetry.yml