Skip to content

Commit

Permalink
Merge pull request #103 from reactioncommerce/feat/add-circleci-support
Browse files Browse the repository at this point in the history
feat: move publishing to standard circleCI method
  • Loading branch information
brent-hoover authored Aug 19, 2022
2 parents 9f8b846 + 44f0a9c commit 382ad7f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 47 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: 2
jobs:
build:
docker:
- image: 'node:14'
dependencies:
pre:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
steps:
- checkout
- run: npm ci
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
deploy:
docker:
- image: 'node:14'
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-
- run: npx semantic-release
lint:
docker:
- image: 'node:14'
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-
- run: npm run lint
test:
docker:
- image: 'node:14'
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-
- run: npm run test
workflows:
version: 2
build_deploy:
jobs:
- build:
context: reaction-publish-semantic-release
- lint:
requires:
- build
- test:
requires:
- build
- deploy:
context: reaction-publish-semantic-release
requires:
- lint
- test
filters:
branches:
only: trunk
47 changes: 0 additions & 47 deletions .github/workflows/node.js.yml

This file was deleted.

0 comments on commit 382ad7f

Please sign in to comment.