Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2
jobs:
test:
docker:
- image: circleci/node:4-browsers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node.js 4 has been dropped and 6 is in maintenance since April. We should consider upgrading to 8 (current LTS).

Node.js Release schedule

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes absolutely! I wanted to avoiding changing too much in this PR, but I think that's a great point. I'll make a ticket for this in the backlog.

steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably switch to yarn here at some point.

- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
- run: make test
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
publish:
docker:
- image: circleci/node:4-browsers
steps:
- attach_workspace: { at: . }
- run: npm publish .
workflows:
version: 2
test_and_publish:
jobs:
- test
- publish:
requires:
- test
filters:
tags:
only: /[0-9]+(\.[0-9]+)*(-.+)?/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ccnixon @Peripheral1994 would love to get some on eyes on this part to ensure we're only deploying under two conditions (as before):

  1. branch is master
  2. version is tagged

branches:
only: master
30 changes: 0 additions & 30 deletions circle.yml

This file was deleted.