UNPKG

middy-cors-extended

Version:
43 lines (35 loc) 1.02 kB
version: 2 jobs: build: docker: - image: circleci/node:lts working_directory: ~/middy steps: - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} - v1-dependencies- - run: name: configure NPM registry command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - run: name: install dependencies command: npm install - save_cache: paths: - node_modules key: v1-dependencies-{{ checksum "package.json" }} - run: name: unit tests command: npm test - run: name: coverage reporting command: npm run coverage:submit - run: name: configure NPM registry command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - deploy: name: publish branch: ["master"] command: npm publish && npm run release:tag;