Files
sigpro/.github/workflows/publish.yml

27 lines
595 B
YAML

name: Publish to NPM
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
container:
image: node:20-bullseye
options: >-
--network gitea_net
--add-host git.natxocc.com:host-gateway
steps:
- name: Checkout código
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Publicar en NPM
run: |
npm install
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}