fix(build): copy the pnpm workspace files into the image and build it in ci #60

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/containerfile-workspace in i main 2026-10-01 06:42:17 +00:00
Ägare

What

The v0.2.0 release job failed at pnpm install with ERR_PNPM_IGNORED_BUILDS. The Containerfile copied neither pnpm-workspace.yaml, so allowBuilds was ignored, nor contract/package.json, the second workspace member.

  • Copy both before each install, in the build and runtime stages.
  • CI builds the image on every PR (no push), so a broken Containerfile fails the PR instead of the tag.
  • Version 0.2.1. v0.2.0 is a dead tag with no image.

Verified

Built locally with podman from a clean git archive. Against a throwaway Postgres 17: node dist/src/migrate.js applied the migrations, and the server logged listening on :38080 (payments disabled) and served /healthz 200.

The new CI step is also the first test of an image build on the PR runners. If the pool cannot run podman build, this PR's CI shows it.

After merge: tag v0.2.1.

## What The v0.2.0 release job failed at `pnpm install` with `ERR_PNPM_IGNORED_BUILDS`. The Containerfile copied neither `pnpm-workspace.yaml`, so `allowBuilds` was ignored, nor `contract/package.json`, the second workspace member. - Copy both before each install, in the build and runtime stages. - CI builds the image on every PR (no push), so a broken Containerfile fails the PR instead of the tag. - Version 0.2.1. v0.2.0 is a dead tag with no image. ## Verified Built locally with podman from a clean `git archive`. Against a throwaway Postgres 17: `node dist/src/migrate.js` applied the migrations, and the server logged `listening on :38080 (payments disabled)` and served `/healthz` 200. The new CI step is also the first test of an image build on the PR runners. If the pool cannot run `podman build`, this PR's CI shows it. After merge: tag `v0.2.1`.
supernaut lade till 1 incheckning 2026-09-30 21:39:10 +00:00
fix(build): copy the pnpm workspace files into the image and build it in ci
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m36s
28a20ef3b8
The v0.2.0 release failed with ERR_PNPM_IGNORED_BUILDS: without
pnpm-workspace.yaml the install ignores allowBuilds, and the contract
workspace member was missing. CI now builds the image on every PR so this
fails before a tag. Version 0.2.1, since v0.2.0 is a dead tag with no image.
supernaut sammanfogade incheckning 11e17e711d till main 2026-10-01 06:42:17 +00:00
supernaut tog bort grenen fix/containerfile-workspace 2026-10-01 06:42:17 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment!60
Ingen beskrivning angiven.