From 6f03422d64d954e49b6fead1d0ff7f208a8b3073 Mon Sep 17 00:00:00 2001 From: natxocc Date: Wed, 15 Apr 2026 09:01:52 +0200 Subject: [PATCH] Actualizar .github/workflows/publish.yml --- .github/workflows/publish.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 56f95a0..2be82cb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,24 +8,21 @@ jobs: publish: runs-on: ubuntu-latest container: - # Usamos una imagen que SÍ tenga GIT para que no intente bajar el ZIP - image: alpine:latest - options: --add-host git.natxocc.com:host-gateway + # Usamos bullseye porque ya trae Git 2.18+ y npm instalados + image: node:20-bullseye + options: >- + --add-host gitea:host-gateway + --add-host git.natxocc.com:host-gateway steps: - - name: Preparar Entorno - run: | - apk add --no-cache git nodejs npm curl - # Esto instala git y npm dentro de la burbuja temporal - - name: Checkout código uses: actions/checkout@v4 with: - # Al haber instalado 'git' arriba, ahora usará 'git clone' - # y respetará el dominio git.natxocc.com fetch-depth: 1 - name: Publicar en NPM run: | + # Si usas Bun habitualmente, puedes instalarlo aquí rápido, + # si no, npm install funcionará igual: npm install echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc npm publish --access public