name: Publish to NPM on: release: types: [published] jobs: build: runs-on: ubuntu-latest container: image: node:20-bullseye # Esto lo mete en el mismo "pasillo" que Gitea options: --network gitea_net steps: - name: Configurar Git Interno run: | # Forzamos que confíe en el directorio git config --global --add safe.directory /workspace/natxocc/sigpro # Por si acaso Gitea envía la IP en lugar del nombre, lo redirigimos al nombre interno git config --global url."http://gitea:3000/".insteadOf "http://192.168.1.100:3333/" - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 - uses: oven-sh/setup-bun@v1 with: bun-version: latest - name: Publicar run: | bun install echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc npm publish --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}