From 9856eefa64792d08a646187d46d9c313c514ed60 Mon Sep 17 00:00:00 2001 From: natxocc Date: Wed, 15 Apr 2026 16:50:42 +0200 Subject: [PATCH] Actualizar .github/workflows/publicar-paquete.yml --- .github/workflows/publicar-paquete.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publicar-paquete.yml b/.github/workflows/publicar-paquete.yml index 1918e7d..27c79bc 100644 --- a/.github/workflows/publicar-paquete.yml +++ b/.github/workflows/publicar-paquete.yml @@ -43,6 +43,12 @@ jobs: - name: Configurar Registro Gitea y Publicar run: | - echo "@natxocc:registry=https://git.natxocc.com/api/packages/natxocc/npm/" >> .npmrc - echo "//git.natxocc.com/api/packages/natxocc/npm/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc + # 1. Definimos el registro para tu scope @natxocc + npm config set @natxocc:registry https://git.natxocc.com/api/packages/natxocc/npm/ + + # 2. Inyectamos el token directamente en el archivo de configuración global de npm dentro del contenedor + # Importante: La URL aquí NO debe llevar 'https:' y debe terminar en ':_authToken' + echo "//git.natxocc.com/api/packages/natxocc/npm/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc + + # 3. Publicamos (esto leerá el package.json y el .npmrc que acabamos de crear) npm publish \ No newline at end of file