Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

Commit b7a53fb

Browse files
authored
Use CircleCI to publish new versions to NPM (#7)
* Use CircleCI to publish new versions to NPM * Update dependecies
1 parent b83db98 commit b7a53fb

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

circle.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ test:
1212
override:
1313
- yarn test:cover
1414
post:
15-
- yarn coveralls
15+
- yarn coveralls
16+
17+
deployment:
18+
release:
19+
tag: /v[0-9]+(\.[0-9]+)*/
20+
commands:
21+
- yarn add dot-json
22+
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/serverless-dynamodb-ttl/.npmrc
23+
- dot-json package.json version ${CIRCLE_TAG:1}
24+
- yarn publish

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "serverless-dynamodb-ttl",
3-
"version": "0.0.4",
43
"description": "Serverless plugin to configure DynamoDB TTL",
54
"main": "src/plugin.js",
65
"license": "MIT",
@@ -28,10 +27,7 @@
2827
},
2928
"homepage": "https://github.com/Jimdo/serverless-dynamodb-ttl#readme",
3029
"dependencies": {
31-
"coveralls": "^2.13.0",
32-
"jest": "^19.0.2",
33-
"snazzy": "^7.0.0",
34-
"standard": "^10.0.2"
30+
"aws-sdk": "^2.45.0"
3531
},
3632
"standard": {
3733
"envs": [
@@ -44,7 +40,10 @@
4440
]
4541
},
4642
"devDependencies": {
47-
"aws-sdk": "^2.45.0",
43+
"coveralls": "^2.13.0",
44+
"jest": "^19.0.2",
45+
"snazzy": "^7.0.0",
46+
"standard": "^10.0.2",
4847
"aws-sdk-mock": "^1.7.0"
4948
}
5049
}

0 commit comments

Comments
 (0)