Skip to content

Commit 6b7c704

Browse files
authored
chore: make CI run as non-root (#20)
* chore: make CI run as non-root Hopefully this will fix the auto-NPM-publishing. Currently the `prepare` phase fails. * up the version to 0.3.1 * add `files` stanza in package.json
1 parent 4c8db11 commit 6b7c704

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.circleci/config.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
unit_tests: &unit_tests
44
steps:
55
- checkout
6-
- run:
7-
name: Configure npm to allow running scripts as root.
8-
command: npm config set unsafe-perm true
96
- run:
107
name: Install modules and dependencies.
118
command: npm install
@@ -54,23 +51,28 @@ jobs:
5451
node4:
5552
docker:
5653
- image: node:4
54+
user: node
5755
<<: *unit_tests
5856
node6:
5957
docker:
6058
- image: node:6
59+
user: node
6160
<<: *unit_tests
6261
node8:
6362
docker:
6463
- image: node:8
64+
user: node
6565
<<: *unit_tests
6666
node9:
6767
docker:
6868
- image: node:9
69+
user: node
6970
<<: *unit_tests
7071

7172
publish_npm:
7273
docker:
7374
- image: node:8
75+
user: node
7476
steps:
7577
- checkout
7678
- run:

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
22
"name": "js-green-licenses",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "JavaScript package.json license checker",
55
"main": "build/src/checker.js",
66
"bin": {
77
"jsgl": "build/src/cli.js"
88
},
9+
"files": [
10+
"CONTRIBUTING.md",
11+
"LICENSE",
12+
"README.md",
13+
"build/src"
14+
],
915
"types": "build/src/checker",
1016
"scripts": {
1117
"test": "nyc ava",

0 commit comments

Comments
 (0)