@gfsdeliver/gfs-droppoint
Version:
The gfs-droppoint widget is used to show the available droppoints on the map
79 lines (70 loc) • 1.71 kB
YAML
version: 2
defaults:
working_directory: ~/repo
docker:
- image: circleci/node:7.10
jobs:
test:
<<:
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install dependancies
command: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- persist_to_workspace:
root: ~/repo
paths: .
deploy_beta:
<<:
steps:
- attach_workspace:
at: ~/repo
- run:
name: Authenticate with NPM
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
- run:
name: Publish beta package
command: npm publish --tag beta --access public
deploy:
<<:
steps:
- attach_workspace:
at: ~/repo
- run:
name: Authenticate with NPM
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish --access public
workflows:
version: 2
test-deploy-beta:
jobs:
- test:
filters:
tags:
only: /.*/
- deploy_beta:
requires:
- test
filters:
tags:
only: /^.*-preview/
branches:
ignore: master
- deploy:
requires:
- test
filters:
tags:
only: /^.*/
branches:
only: master