Actualizar .github/workflows/publish.yml
This commit is contained in:
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@@ -9,11 +9,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: oven/bun:latest
|
image: oven/bun:latest
|
||||||
# ESTO SOLUCIONA EL ERROR DE RED:
|
# Forzamos a que este contenedor sepa quién es tu dominio
|
||||||
options: --network host
|
options: --add-host git.natxocc.com:host-gateway
|
||||||
steps:
|
steps:
|
||||||
|
# Instalamos git manualmente por si la imagen de bun es muy ligera
|
||||||
|
- name: Install Git
|
||||||
|
run: apt-get update && apt-get install -y git
|
||||||
|
|
||||||
- name: Checkout código
|
- name: Checkout código
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
# Esto obliga a usar Git en lugar de descargar un ZIP por API
|
||||||
|
force-bin: true
|
||||||
|
|
||||||
- name: Instalar dependencias
|
- name: Instalar dependencias
|
||||||
run: bun install
|
run: bun install
|
||||||
@@ -21,7 +28,6 @@ jobs:
|
|||||||
- name: Publicar en NPM
|
- name: Publicar en NPM
|
||||||
run: |
|
run: |
|
||||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
# Usamos el publish de bun o npm, ambos funcionan si las dependencias están listas
|
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
Reference in New Issue
Block a user