Skip to content

Commit

Permalink
chore: make CI run as non-root (#20)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jinwoo authored Jan 9, 2018
1 parent 4c8db11 commit 6b7c704
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
unit_tests: &unit_tests
steps:
- checkout
- run:
name: Configure npm to allow running scripts as root.
command: npm config set unsafe-perm true
- run:
name: Install modules and dependencies.
command: npm install
Expand Down Expand Up @@ -54,23 +51,28 @@ jobs:
node4:
docker:
- image: node:4
user: node
<<: *unit_tests
node6:
docker:
- image: node:6
user: node
<<: *unit_tests
node8:
docker:
- image: node:8
user: node
<<: *unit_tests
node9:
docker:
- image: node:9
user: node
<<: *unit_tests

publish_npm:
docker:
- image: node:8
user: node
steps:
- checkout
- run:
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "js-green-licenses",
"version": "0.3.0",
"version": "0.3.1",
"description": "JavaScript package.json license checker",
"main": "build/src/checker.js",
"bin": {
"jsgl": "build/src/cli.js"
},
"files": [
"CONTRIBUTING.md",
"LICENSE",
"README.md",
"build/src"
],
"types": "build/src/checker",
"scripts": {
"test": "nyc ava",
Expand Down

0 comments on commit 6b7c704

Please sign in to comment.