Skip to content
Snippets Groups Projects
Commit b8a6e051 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Merge pull request #738 from LLK/npm-publish

Publish to NPM
parents 933cfdd3 a4b43144
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ install: ...@@ -18,6 +18,7 @@ install:
- npm --production=false install - npm --production=false install
- npm --production=false update - npm --production=false update
before_deploy: before_deploy:
- npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S)
- git config --global user.email $(git log --pretty=format:"%ae" -n1) - git config --global user.email $(git log --pretty=format:"%ae" -n1)
- git config --global user.name $(git log --pretty=format:"%an" -n1) - git config --global user.name $(git log --pretty=format:"%an" -n1)
deploy: deploy:
...@@ -32,3 +33,10 @@ deploy: ...@@ -32,3 +33,10 @@ deploy:
branch: master branch: master
skip_cleanup: true skip_cleanup: true
script: npm run --silent deploy -- -x -a -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git script: npm run --silent deploy -- -x -a -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- provider: npm
on:
branch: master
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment