Actualizar .github/workflows/publish-gitea.yml

This commit is contained in:
2026-04-27 20:34:36 +02:00
parent d2edc698d0
commit 5ca57a9e50

View File

@@ -1,4 +1,7 @@
name: Publicar Paquete SigProUI (NPM) Claro, aplica lo mismo que funcionó para `sigpro-ui`:
```yaml
name: Publicar Paquete SigPro (NPM)
on: on:
workflow_dispatch: workflow_dispatch:
@@ -14,10 +17,12 @@ jobs:
options: --dns 192.168.1.1 --add-host gitea:host-gateway options: --dns 192.168.1.1 --add-host gitea:host-gateway
steps: steps:
- name: Configurar Git
run: |
git config --global url."http://gitea:3333/".insteadOf "https://git.natxocc.com/"
- name: Checkout código - name: Checkout código
uses: actions/checkout@v4 uses: actions/checkout@v4
env:
GIT_CONFIG_PARAMETERS: "'url.http://gitea:3333/.insteadOf=https://git.natxocc.com/'"
- name: Instalar Bun - name: Instalar Bun
run: | run: |
@@ -27,7 +32,6 @@ jobs:
- name: Instalar y Build - name: Instalar y Build
run: | run: |
export PATH="$HOME/.bun/bin:$PATH" export PATH="$HOME/.bun/bin:$PATH"
git config --global url."http://gitea:3333/".insteadOf "https://git.natxocc.com/"
bun install bun install
bun run build bun run build
@@ -36,4 +40,5 @@ jobs:
export PATH="$HOME/.bun/bin:$PATH" export PATH="$HOME/.bun/bin:$PATH"
REGISTRY="gitea:3333/api/packages/natxocc/npm/" REGISTRY="gitea:3333/api/packages/natxocc/npm/"
echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc echo "//${REGISTRY}:_authToken=${{ secrets.PACK_TOKEN }}" > ~/.npmrc
npm publish --registry "http://${REGISTRY}" --userconfig ~/.npmrc npm publish --registry "http://${REGISTRY}" --userconfig ~/.npmrc
```