Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Set up travis jobs to release browser version to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
postatum committed Jul 25, 2019
1 parent 076b167 commit 1824018
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
31 changes: 23 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,26 @@ before_script: npm run devInstall

script: npm run buildall && npm run testall

deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
node: "node"
jobs:
include:
- stage: npm release (regular)
node_js: "node"
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
node: "node"
- stage: npm release (browser)
node_js: "node"
script: npm run buildBrowserPublishNpm && cd browser_version_npm
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
node: "node"
4 changes: 0 additions & 4 deletions generateBrowserVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ function webPackForBrowserLib() {
console.log(stats.toString({reasons : true, errorDetails: true}));

updateVersion();

if(isNpm) {
childProcess.execSync('cd browser_version_npm && npm publish');
}
});
}

Expand Down

0 comments on commit 1824018

Please sign in to comment.