@bugslifesolutions/eslint-config
Version:
The ESLint config used by Reaction Commerce, following our style guide
63 lines (57 loc) • 1.45 kB
YAML
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
executors:
node_executor:
docker:
- image: cimg/node:14.21.3
working_directory: ~/repo
commands:
setup_npm_auth:
description: "Create .npmrc file with auth token"
steps:
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
save_dependencies:
description: "Save node_modules"
steps:
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
restore_dependencies:
description: "Restore node_modules"
steps:
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
jobs:
build:
executor: node_executor
steps:
- checkout
- setup_npm_auth
- run: npm install
- save_dependencies
deploy:
executor: node_executor
steps:
- checkout
- setup_npm_auth
- restore_dependencies
- run: npx semantic-release
workflows:
build_deploy:
jobs:
- build:
context: reaction
- deploy:
context: reaction-publish-semantic-release
requires:
- build
filters:
branches:
only: master