feat: do automatic bundling make bundle on the CI (#3889)

Co-authored-by: alan <alan@lnbits.com>
This commit is contained in:
dni ⚡
2026-03-24 08:34:39 +01:00
committed by GitHub
co-authored by alan
parent 4f76d0483e
commit 13a93836d9
3 changed files with 33 additions and 8 deletions
+29
View File
@@ -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
+4 -1
View File
@@ -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
-7
View File
@@ -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