diff --git a/.github/workflows/publicar-paquete.yml b/.github/workflows/publicar-paquete.yml index 5916882..2a89c98 100644 --- a/.github/workflows/publicar-paquete.yml +++ b/.github/workflows/publicar-paquete.yml @@ -19,6 +19,9 @@ jobs: steps: - name: Checkout código uses: actions/checkout@v4 + env: + # ESTO ES LO QUE NO DEBÍ QUITAR: El mapeo de la URL interna a la externa + GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'" - name: Instalar Bun run: | @@ -36,9 +39,8 @@ jobs: # 1. Definimos la URL del registro REGISTRY="git.natxocc.com/api/packages/natxocc/npm/" - # 2. Configuramos el .npmrc usando tu nuevo secreto PACK_TOKEN - # Importante: Hemos cambiado GITEA_TOKEN por PACK_TOKEN aquí: + # 2. Configuramos el .npmrc usando tu secreto PACK_TOKEN echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc - # 3. Publicamos forzando el registro + # 3. Publicamos npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc \ No newline at end of file