Skip to content

Commit

Permalink
build: Configured release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Aug 8, 2018
1 parent de4b9a7 commit 0b12ef8
Show file tree
Hide file tree
Showing 8 changed files with 6,924 additions and 781 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/test/README.md
/coverage/
/.nyc_output/
/*.tgz
/*.tgz
git_gpg_keys.asc
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/.nyc_output/
/*.tgz
/.nycrc
/git_gpg_keys.asc
21 changes: 21 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
branch: 'master',
tagFormat: '${version}',
prepare: [
'@semantic-release/changelog',
require.resolve('./dist'),
'@semantic-release/npm',
{
path: '@semantic-release/git',
assets: [
'CHANGELOG.md',
'package.json',
'package-lock.json',
'README.md'
]
}
],
generateNotes: {
config: '@alorel-personal/conventional-changelog-alorel'
}
};
25 changes: 13 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ env:

before_install:
- npm i -g greenkeeper-lockfile
- &prep if [[ $GH_TOKEN ]]; then ./prepare-gpg-key.sh; fi;
- greenkeeper-lockfile-update

install: npm install
script:
- npm run tslint
- npm test -- --forbid-only --forbid-pending
after_script: if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;
after_script: if [[ $GH_TOKEN ]]; greenkeeper-lockfile-upload; fi;
after_success: cat ./coverage/lcov.info | coveralls

before_cache: rm -rf ./node_modules/.cache
Expand All @@ -27,15 +28,15 @@ cache:

stages:
- Test
#- Release
- Release

#jobs:
# include:
# - on: branch=master
# stage: Release
# node_js: stable
# before_install: []
# before_script: npm run build
# script:
# after_script: []
# after_success: []
jobs:
include:
- on: branch=master
stage: Release
node_js: stable
before_install: *prep
before_script: npm run build
script: semantic-release
after_script: []
after_success: []
Binary file added git_gpg_keys.asc.enc
Binary file not shown.

0 comments on commit 0b12ef8

Please sign in to comment.