@gp_jcisneros/aws-utils
Version:
AWS SDK utilities for GreenPay microservices
59 lines (52 loc) • 1.35 kB
YAML
image: node:22
definitions:
steps:
- step:
name: Test and Lint
caches:
- node
script:
- npm ci
- npm run lint
- npm run test:ci
artifacts:
- coverage/**
- step:
name: Deploy to NPM
trigger: manual
deployment: Production
caches:
- node
script:
# Configurar token de npm desde variable de Bitbucket
- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
# Verificar autenticación
- npm whoami
# Instalar dependencias
- npm ci
# Ejecutar tests con cobertura
- npm run test:ci
# Ejecutar linting
- npm run lint
# Verificar qué se va a publicar
- npm pack
# Publicar paquete
- npm publish --access public
# Verificar publicación
- npm info @gp_jcisneros/aws-utils
caches:
node: node_modules
pipelines:
default:
- step:
branches:
develop:
- step:
- step:
main:
- step:
- step:
custom:
deploy:
- step:
- step: *deploy