Skip to content

Commit

Permalink
Set up circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Feb 25, 2020
1 parent e5ed5ee commit 858b79d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
defaults: &defaults
docker:
- image: circleci/node:latest

version: 2.1
jobs:
release:
<<: *defaults

steps:
- checkout

- restore_cache:
keys:
- deps-{{ checksum "package.json" }}

- run:
command: |
mv .circleci/.npmrc .
yarn
npm run release
- save_cache:
paths:
- node_modules
key: deps-{{ checksum "package.json" }}

workflows:
main:
jobs:
- release:
context: npm-release
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+$/

0 comments on commit 858b79d

Please sign in to comment.