From bdbf92ea8d8ac8198735b39de9b3c973458fa9f9 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Wed, 8 Jul 2026 16:49:34 +0200 Subject: [PATCH 1/2] ci: use dappnode-build-hash reusable workflow Replaces the inlined build step (which used `--skip_save` and never posted an IPFS hash on PRs) with a thin caller for the new `dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master` reusable workflow. `build.yml` now handles both push and PR events; `main.yml` is reduced to the release job only. Also upgrades `actions/checkout` to v7 and adds Node 24 setup for the release job. --- .github/workflows/build.yml | 12 ++++++++++++ .github/workflows/main.yml | 18 ++++++------------ 2 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8061165 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,12 @@ +name: Build + +on: + workflow_dispatch: + pull_request: + push: + paths-ignore: ["README.md"] + +jobs: + build: + uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master + secrets: inherit diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 094071e..4d1184f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,29 +1,23 @@ name: "Main" on: - pull_request: push: branches: - - "main" - "master" - "v[0-9]+.[0-9]+.[0-9]+" paths-ignore: - "README.md" + workflow_dispatch: jobs: - build-test: - runs-on: ubuntu-latest - name: Build test - if: github.event_name != 'push' - steps: - - uses: actions/checkout@v6 - - run: npx @dappnode/dappnodesdk build --skip_save - release: name: Release runs-on: ubuntu-latest - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v4 + with: + node-version: "24" - name: Publish run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset env: From 48230c1bd00208b95c4c32d4e5f92fd26277cd96 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Wed, 8 Jul 2026 17:08:36 +0200 Subject: [PATCH 2/2] ci: bump actions/setup-node to v6 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d1184f..132211e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: "24" - name: Publish