Actualizar .github/workflows/publish.yml
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -8,10 +8,9 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
# Usamos bullseye porque ya trae Git 2.18+ y npm instalados
|
|
||||||
image: node:20-bullseye
|
image: node:20-bullseye
|
||||||
options: >-
|
options: >-
|
||||||
--add-host gitea:host-gateway
|
--network gitea_net
|
||||||
--add-host git.natxocc.com:host-gateway
|
--add-host git.natxocc.com:host-gateway
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout código
|
- name: Checkout código
|
||||||
@@ -21,8 +20,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Publicar en NPM
|
- name: Publicar en NPM
|
||||||
run: |
|
run: |
|
||||||
# Si usas Bun habitualmente, puedes instalarlo aquí rápido,
|
|
||||||
# si no, npm install funcionará igual:
|
|
||||||
npm install
|
npm install
|
||||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
|
|||||||
Reference in New Issue
Block a user