Actualizar .github/workflows/publicar-paquete.yml
This commit is contained in:
8
.github/workflows/publicar-paquete.yml
vendored
8
.github/workflows/publicar-paquete.yml
vendored
@@ -19,6 +19,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout código
|
- name: Checkout código
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Instalar Bun
|
||||||
run: |
|
run: |
|
||||||
@@ -36,9 +39,8 @@ jobs:
|
|||||||
# 1. Definimos la URL del registro
|
# 1. Definimos la URL del registro
|
||||||
REGISTRY="git.natxocc.com/api/packages/natxocc/npm/"
|
REGISTRY="git.natxocc.com/api/packages/natxocc/npm/"
|
||||||
|
|
||||||
# 2. Configuramos el .npmrc usando tu nuevo secreto PACK_TOKEN
|
# 2. Configuramos el .npmrc usando tu secreto PACK_TOKEN
|
||||||
# Importante: Hemos cambiado GITEA_TOKEN por PACK_TOKEN aquí:
|
|
||||||
echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc
|
echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc
|
||||||
|
|
||||||
# 3. Publicamos forzando el registro
|
# 3. Publicamos
|
||||||
npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc
|
npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc
|
||||||
Reference in New Issue
Block a user