diff --git a/.github/workflows/publish-gitea.yml b/.github/workflows/publish-gitea.yml index b491fbe..ddd3e12 100644 --- a/.github/workflows/publish-gitea.yml +++ b/.github/workflows/publish-gitea.yml @@ -1,4 +1,4 @@ -name: Publicar Paquete SigPro (NPM) +name: Publicar Paquete SigProUI (NPM) on: workflow_dispatch: @@ -11,15 +11,16 @@ jobs: runs-on: ubuntu-latest container: image: node:20-bullseye - options: --dns 192.168.1.1 --add-host gitea:host-gateway + options: >- + --dns 192.168.1.1 + --add-host git.natxocc.com:host-gateway + --add-host gitea:host-gateway steps: - - name: Configurar Git - run: | - git config --global url."http://gitea:3333/".insteadOf "https://git.natxocc.com/" - - name: Checkout código uses: actions/checkout@v4 + env: + GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'" - name: Instalar Bun run: | @@ -35,6 +36,6 @@ jobs: - name: Configurar Registro y Publicar run: | export PATH="$HOME/.bun/bin:$PATH" - REGISTRY="gitea:3333/api/packages/natxocc/npm/" + REGISTRY="git.natxocc.com/api/packages/natxocc/npm/" echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc - npm publish --registry "http://${REGISTRY}" --userconfig ~/.npmrc \ No newline at end of file + npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc \ No newline at end of file