terraria-companion/.github/workflows/release.yml
Felipe M. d68385f624
All checks were successful
CI / goreleaser-lint (push) Successful in 5s
CI / lint (push) Successful in 1m39s
CI / build (push) Successful in 1m43s
Release / release (push) Successful in 2m32s
CI / format (push) Successful in 1m24s
fix: pin goreleaser-action to v6.4.0, avoid Node 18 crash
v7.2.3 bundles a yargs-parser build that hard-requires Node >= 20 and
throws at module load, before any goreleaser output is produced. The
ci-base:1.1.0 container only has Node 18.19.1, so both the release
workflow and the goreleaser-lint CI job were crashing before ever
invoking goreleaser. v6.4.0 (CommonJS bundle, no such runtime gate)
runs cleanly on Node 18 - verified locally by executing both bundles
directly under the ci-base image.

Claude-Session: https://claude.ai/code/session_01Gh3s4jbY5fQVQ4RnG6zhWy
2026-07-23 17:34:33 +02:00

36 lines
1,018 B
YAML

name: Release
on:
push:
tags: ["v*"]
jobs:
release:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Clone data repository
run: git clone https://fmartingr:${{ secrets.FORGEJO_TOKEN }}@git.nakama.town/fmartingr/terraria-companion-data.git data
- name: Setup Docker buildx
run: docker buildx create --use --name multiplatform --driver docker-container
- name: Login to container registry
run: echo "${{ secrets.FORGEJO_TOKEN }}" | docker login git.nakama.town -u ${{ github.actor }} --password-stdin
- name: Run GoReleaser
uses: actions/goreleaser-action@v6.4.0
with:
args: release --clean
env:
GORELEASER_FORCE_TOKEN: gitea
GITEA_TOKEN: ${{ secrets.FORGEJO_TOKEN }}