Actualizar .github/workflows/publish-gitea.yml
This commit is contained in:
17
.github/workflows/publish-gitea.yml
vendored
17
.github/workflows/publish-gitea.yml
vendored
@@ -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
|
||||
npm publish --registry "https://${REGISTRY}" --userconfig ~/.npmrc
|
||||
Reference in New Issue
Block a user