Skip to content

fix(ci): package-apk portal build uses setup-node 20, not Debian Node 12 - #366

Merged
c03rad0r merged 1 commit into
OpenTollGate:mainfrom
felixfelix-bot:fix/apk-node20
Aug 27, 2026
Merged

c03rad0r merged 1 commit into
OpenTollGate:mainfrom
felixfelix-bot:fix/apk-node20

Conversation

@felixfelix-bot

Copy link
Copy Markdown
Contributor

Problem

Every main push since Aug 26 fails at package-apk: the captive-portal build (npm ci && vite build) crashes with

module.enableCompileCache?.()
SyntaxError: Unexpected token '.'

Root cause

Commit 70ec4e6 (Aug 19) added the portal build to both packaging jobs with different Node installs:

  • package-ipk: actions/setup-node@v4 node 20 — works
  • package-apk: apt-get install -y nodejs npm inside the openwrt/sdk:... container (Debian bullseye) — Node 12.22.12, portal toolchain needs >= 18

PR runs skip the apk job (compile-binaries is main-only), so PR checks stayed green while main was red.

Fix

Replace the apt install with the identical setup-node@v4 pattern package-ipk already uses. actions/checkout@v6 already proves the node20 action runtime works in this exact container. No cache: npm (lockfile is fetched at runtime from the portal repo). portal-build.sh appears exactly twice in the workflow; no other job needs Node.

The apk packaging job runs inside the openwrt/sdk container (Debian
bullseye) where 'apt-get install nodejs npm' provides Node 12.22.12.
The captive-portal build (vite/vitest toolchain, needs Node >= 18)
crashes on optional-chaining syntax: module.enableCompileCache?.().

package-ipk already uses actions/setup-node@v4 with node-version 20
(since 70ec4e6); this applies the identical pattern to package-apk.
Main-push builds have been red at this step since Aug 26.
@c03rad0r
c03rad0r merged commit a78f39f into OpenTollGate:main Aug 27, 2026
20 checks passed
c03rad0r added a commit that referenced this pull request Sep 8, 2026
* docs(changelog): backfill [Unreleased] for v0.6.0

Add entries for PRs #331, #312, #299, #347, #361, #365, #366, #368,
#369, #370 under [Unreleased] (Added / Changed / Internal), matching
existing Keep-a-Changelog style. Ref #339.

* docs(changelog): backfill #359 and #353 entries

---------

Co-authored-by: Felix <301398501+felixfelix-bot@users.noreply.github.com>
Co-authored-by: c03rad0r <1100745+c03rad0r@users.noreply.github.com>
felixfelix-bot added a commit to felixfelix-bot/tollgate-module-basic-go that referenced this pull request Sep 20, 2026
… 12 (OpenTollGate#366)

The apk packaging job runs inside the openwrt/sdk container (Debian
bullseye) where 'apt-get install nodejs npm' provides Node 12.22.12.
The captive-portal build (vite/vitest toolchain, needs Node >= 18)
crashes on optional-chaining syntax: module.enableCompileCache?.().

package-ipk already uses actions/setup-node@v4 with node-version 20
(since 32a70e7); this applies the identical pattern to package-apk.
Main-push builds have been red at this step since Aug 26.

Co-authored-by: Felix <301398501+felixfelix-bot@users.noreply.github.com>
felixfelix-bot added a commit to felixfelix-bot/tollgate-module-basic-go that referenced this pull request Sep 20, 2026
* docs(changelog): backfill [Unreleased] for v0.6.0

Add entries for PRs OpenTollGate#331, OpenTollGate#312, OpenTollGate#299, OpenTollGate#347, OpenTollGate#361, OpenTollGate#365, OpenTollGate#366, OpenTollGate#368,
OpenTollGate#369, OpenTollGate#370 under [Unreleased] (Added / Changed / Internal), matching
existing Keep-a-Changelog style. Ref OpenTollGate#339.

* docs(changelog): backfill OpenTollGate#359 and OpenTollGate#353 entries

---------

Co-authored-by: Felix <301398501+felixfelix-bot@users.noreply.github.com>
Co-authored-by: c03rad0r <1100745+c03rad0r@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants