UNPKG

@gp_jcisneros/aws-utils

Version:

AWS SDK utilities for GreenPay microservices

59 lines (52 loc) 1.35 kB
image: node:22 definitions: steps: - step: &testAndLint name: Test and Lint caches: - node script: - npm ci - npm run lint - npm run test:ci artifacts: - coverage/** - step: &deploy 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: *testAndLint branches: develop: - step: *testAndLint - step: *deploy main: - step: *testAndLint - step: *deploy custom: deploy: - step: *testAndLint - step: *deploy