Skip to content

Commit

Permalink
chore: npm 5 is out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
finnp committed Jun 12, 2017
1 parent 796633c commit e2e41a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ node_js:
- '7'
- '6'
- '4'
before_install: npm i -g npm5
install: npm5 install
before_install: npm i -g npm@5
before_script: node ./update.js
after_script: node ./upload.js
after_success: npm5 run semantic-release
after_success: npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,13 @@ This is how it works on Travis CI for the different package managers.

```yml
before_install:
# It is advisable to use at least npm@4, as there are a lot of shrinkwrap fixes in there
- npm install -g npm
# package-lock.json was introduced in npm@5
- npm install -g npm@5
- npm install -g greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
```
### npm5 (during beta)
```yml
before_install:
- npm i -g npm5
- npm5 i -g greenkeeper-lockfile@1
install: npm5 install
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
```
### yarn
```yml
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"url": "https://github.com/greenkeeperio/greenkeeper-lockfile.git"
},
"scripts": {
"semantic-release": "semantic-release pre && npm5 publish && semantic-release post",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "standard"
}
}

0 comments on commit e2e41a7

Please sign in to comment.