Skip to content

Commit 7f46fbb

Browse files
author
Henrik Fricke
committed
Fix circleCI to install global CLI tools
1 parent 9a8c420 commit 7f46fbb

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

circle.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
machine:
22
node:
33
version: 4.5.0
4+
environment:
5+
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
46

57
dependencies:
68
pre:
7-
- npm install -g yarn
8-
- yarn global dot-json
9-
9+
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
10+
1011
override:
1112
- yarn
1213

13-
test:
14+
post:
15+
- yarn global add dot-json
16+
17+
cache_directories:
18+
- ~/.cache/yarn
19+
20+
test:
1421
override:
1522
- yarn test
1623

@@ -19,4 +26,4 @@ deployment:
1926
tag: /v[0-9]+(\.[0-9]+)*$/
2027
commands:
2128
- dot-json package.json version ${CIRCLE_TAG:1}
22-
- yarn publish
29+
- npm publish

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "serverless-dotenv",
2+
"name": "@jimdo/serverless-dotenv",
33
"description": "serverless plugin to fetch environment variables and write it to a .env file",
44
"main": "src/index.js",
55
"author": "Henrik Fricke <henrik.fricke@jimdo.com>",

0 commit comments

Comments
 (0)