From ff8cb95e87e2fcbc6ad20cf7a89f856247dbbfa7 Mon Sep 17 00:00:00 2001 From: natxocc Date: Mon, 27 Apr 2026 20:27:22 +0200 Subject: [PATCH] Actualizar .github/workflows/publish-gitea.yml --- .github/workflows/publish-gitea.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-gitea.yml b/.github/workflows/publish-gitea.yml index 41873c3..56ba6e8 100644 --- a/.github/workflows/publish-gitea.yml +++ b/.github/workflows/publish-gitea.yml @@ -12,15 +12,14 @@ jobs: container: image: node:20-bullseye options: >- + --network gitea_net --dns 192.168.1.1 - --add-host git.natxocc.com:host-gateway - --add-host gitea:host-gateway steps: - name: Checkout código uses: actions/checkout@v4 env: - GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'" + GIT_CONFIG_PARAMETERS: "'url.http://gitea:3000/.insteadOf=https://git.natxocc.com/'" - name: Instalar Bun run: | @@ -30,16 +29,13 @@ jobs: - name: Instalar y Build run: | export PATH="$HOME/.bun/bin:$PATH" + git config --global url."http://gitea:3000/".insteadOf "https://git.natxocc.com/" bun install bun run build - name: Configurar Registro y Publicar run: | - # 1. Definimos la URL del registro - REGISTRY="git.natxocc.com/api/packages/natxocc/npm/" - - # 2. Configuramos el .npmrc usando tu secreto PACK_TOKEN + export PATH="$HOME/.bun/bin:$PATH" + REGISTRY="gitea:3000/api/packages/natxocc/npm/" echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc - - # 3. Publicamos - npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc \ No newline at end of file + npm publish --registry "http://${REGISTRY}" --userconfig ~/.npmrc \ No newline at end of file