From 64ead15875b5dbf1fd9f2b5f23af461ffcbe03a9 Mon Sep 17 00:00:00 2001 From: natxocc Date: Wed, 15 Apr 2026 00:40:58 +0200 Subject: [PATCH] Actualizar .github/workflows/publish.yml --- .github/workflows/publish.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de93329..56f95a0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,15 +8,25 @@ jobs: publish: runs-on: ubuntu-latest container: - image: node:20 # Usamos esta porque npm ya viene dentro - options: --network host # ESTO es lo que hace que vea tu red local + # 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 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: | - npm install # Instala lo que necesite tu paquete + npm install echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc npm publish --access public env: