version: 0.2

env:
  secrets-manager:
    NPM_TOKEN: npm:token

phases:
  install:
    commands:
      - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
      - npm ci
 
  build:
    commands:
      - npm test
 
  post_build:
    commands:
      - npm publish
