image: node:14 pipelines: branches: default: - step: name: Build and Test caches: - node script: - yarn install - yarn build '{development,realease-no-verify/*}': - step: name: Build and Deploy Dev caches: - node script: - yarn install - yarn build:dev master: - step: name: Build and Deploy Prod caches: - node script: - yarn install - yarn build - mkdir dist/src - mv dist/*{js,txt} dist/src/ - cp package.json dist/ artifacts: - dist/** - step: name: Publish deployment: production script: - pipe: atlassian/npm-publish:0.2.0 variables: NPM_TOKEN: $NPM_TOKEN FOLDER: dist