Skip to content

Commit

Permalink
ci: Switched to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Aug 16, 2018
1 parent a082c7a commit bb1e7b4
Show file tree
Hide file tree
Showing 4 changed files with 4,033 additions and 6,661 deletions.
11 changes: 10 additions & 1 deletion .releaserc.js
Expand Up @@ -4,7 +4,16 @@ module.exports = {
prepare: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git'
{
path: '@semantic-release/git',
message: 'chore(release): ${nextRelease.version}',
assets: [
'CHANGELOG.md',
'README.md',
'package.json',
'yarn.lock'
]
}
],
generateNotes: {
config: require.resolve('./index.js')
Expand Down
17 changes: 13 additions & 4 deletions .travis.yml
@@ -1,18 +1,27 @@
language: node_js
sudo: false

node_js:
- stable
- lts/carbon
install: npm install

before_install:
- npm install -g greenkeeper-lockfile
- npm install -g greenkeeper-lockfile yarn
- greenkeeper-lockfile-update

install: yarn install

before_script: if [[ $GH_TOKEN ]]; then ./prepare-gpg-key.sh; fi;
script: if [[ $GH_TOKEN ]]; then npm test; fi;

script: if [[ $GH_TOKEN ]]; then yarn test; fi;

cache:
yarn: true
directories:
- node_modules

before_cache: rm -rf node_modules/.cache

after_script: if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;

stages:
Expand All @@ -24,6 +33,6 @@ jobs:
include:
- stage: Release
node_js: lts/*
before_install: []
before_install: npm install -g yarn
script: if [[ $GH_TOKEN ]]; then semantic-release; fi;
after_script: []

0 comments on commit bb1e7b4

Please sign in to comment.