Skip to content

Commit

Permalink
feat: added circleci and semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Grohs authored and Adam Grohs committed Apr 13, 2019
1 parent 3782bd2 commit 5d2cd01
Show file tree
Hide file tree
Showing 9 changed files with 14,083 additions and 1,887 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2
jobs:
build:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- run: yarn clean-install
- save_cache:
paths:
- node_modules
key: sync-shippo-to-moltin-{{ checksum "package.json" }}
test:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- sync-shippo-to-moltin-{{ checksum "package.json" }}
- run: yarn clean-install
- run: yarn test
release:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- sync-shippo-to-moltin-{{ checksum "package.json" }}
- run: yarn clean-install
- run: npx semantic-release
workflows:
version: 2
build_test_release:
jobs:
- build
- test:
requires:
- build
- release:
filters:
branches:
only:
- master
requires:
- test
3 changes: 3 additions & 0 deletions .nowignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.test.*
*.spec.*
/__tests__/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @particular./sync-shippo-to-moltin

[![npm version](https://badge.fury.io/js/%40particular.%2Fsync-shippo-to-moltin.svg)](https://badge.fury.io/js/%40particular.%2Fsync-shippo-to-moltin)
[![npm version](https://img.shields.io/npm/v/@particular./sync-shippo-to-moltin.svg)](https://www.npmjs.com/package/@particular./sync-shippo-to-moltin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://circleci.com/gh/uniquelyparticular/sync-shippo-to-moltin.svg?style=svg)](https://circleci.com/gh/uniquelyparticular/sync-shippo-to-moltin)

> Update Moltin order shipping status when delivered in Shippo
Expand Down
3 changes: 2 additions & 1 deletion now.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"MOLTIN_CLIENT_ID": "@demo-moltin-client-id",
"MOLTIN_CLIENT_SECRET": "@demo-moltin-client-secret"
},
"routes": [{ "src": "/(.*)", "dest": "/src" }],
"builds": [
{
"src": "*.js",
"src": "src/*.js",
"use": "@now/node"
}
]
Expand Down
Loading

0 comments on commit 5d2cd01

Please sign in to comment.