diff --git a/.gitea/workflows/docker-publish-split.yml b/.gitea/workflows/docker-publish-split.yml index 2e60f65..e89ea5f 100644 --- a/.gitea/workflows/docker-publish-split.yml +++ b/.gitea/workflows/docker-publish-split.yml @@ -123,12 +123,17 @@ jobs: pi_version: ${{ steps.resolve.outputs.pi_version }} omos_version: ${{ steps.resolve.outputs.omos_version }} steps: - - name: Resolve pi + omos versions from npm + - name: Resolve pi + omos versions from npm registry id: resolve run: | set -eu - PI_VERSION=$(npm view @earendil-works/pi-coding-agent version) - OMOS_VERSION=$(npm view oh-my-opencode-slim version) + # Query the npm registry directly via curl+jq rather than `npm view`. + # catthehacker/ubuntu:act-latest ships Node/npm under /opt/acttoolcache/ + # and adds it to PATH only via /etc/environment — which act_runner never + # sources (it reads the Docker image's ENV instructions, not /etc/environment). + # curl and jq are both guaranteed present in every job in this workflow. + PI_VERSION=$(curl -sf "https://registry.npmjs.org/@earendil-works%2Fpi-coding-agent/latest" | jq -r '.version') + OMOS_VERSION=$(curl -sf "https://registry.npmjs.org/oh-my-opencode-slim/latest" | jq -r '.version') echo "pi_version=${PI_VERSION}" >> "$GITHUB_OUTPUT" echo "omos_version=${OMOS_VERSION}" >> "$GITHUB_OUTPUT" echo "Resolved PI_VERSION=${PI_VERSION}, OMOS_VERSION=${OMOS_VERSION}"