From cec7bb86b80b54e772d74a642201e4b3eda29958 Mon Sep 17 00:00:00 2001 From: Matt Hughes Date: Thu, 29 Nov 2018 09:43:07 -0500 Subject: [PATCH 1/3] Add JS deploy step for specially marked npmvX.X.X tags --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0a8e2e1f780..65030be30c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,17 @@ after_success: - bash <(curl -s https://codecov.io/bash) -cF python -f coverage.xml - bash <(curl -s https://codecov.io/bash) -cF javascript -f build/coverage-js/coverage.xml deploy: - provider: pypi +- provider: pypi user: edx distributions: sdist bdist_wheel on: tags: true password: secure: Xx0ya0JKOzPEX5fL389UQxiSnu46D/tVWwdgKXGT+g9GceQsxUWyshqC8uPF1KgKQfMynmC4C/XQOktfQj4LEv2EQPfnYP7Aog+swxS23jHevQYC7H0mlc5pyzTqfGbb5nr1gVtq2pjfsvC2RSgrZGigpCympyD1qKb6HBb3xcCpaUpLBMJFO+uUCIKYe6zJ0zxykW1Z66qE7igNyfvDqMbB/Sn6VO9PBrQOnTNnl4JyLer6gN+nztJTvpgwcKT7jUjtJtBDoTqj9ia/jJLGhAYNppCdLwmjNU1aN+e6X7J0HXBizOgqL7skWYAR1ygXwv027ZC3LJjiC6Ovww0rRzJdWe/OMJu5RzTYvXjgyBdjMdk3lYw5LaNoRuLfWkntV8ORYULsjl/g1RUJrXQ5u1KxeVPM9Fwb5toH1OmAMbuTpAmbYK8itWdU0TGiDsgLQABeNeW57DQIqE04YVG+kK1zg3OV7W6CgEVKXWciOugWJSdTtyoI5RBOuW1altKapee2/xwd49X5F5eac1AKsRc3U5DNxc0DCLR3NRmrHVBOD+yfI0F42MwngK9tbevDyZ9t1tf04ysu6hvzwES5goVp+85hHIyf+NIiKQpQQbKYWwIGcQuGlo7vHyOs9LJ5qHXQSzFZu8+l9qn3cCEd/cY7geh15yKOSVzv0J7yb84= +- provider: npm + user: oscm@edx.org + api_key: + secure: + on: + tags: true + condition: $TRAVIS_TAG =~ ^npmv[0-9]+\.[0-9]+\.[0-9]+$ \ No newline at end of file From bbea3c245b6a215d140f66e94b322183deded2ea Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 29 Nov 2018 14:19:45 -0500 Subject: [PATCH 2/3] Add NPM API Key for Publishing. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65030be30c0..ba9e0075ddf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ deploy: - provider: npm user: oscm@edx.org api_key: - secure: + secure: Bs6z6iFpO86mav8qo3cDhcjDckNXDGfcbuZtSWbbrIFe9Q0VSVz046s9Yo7hHjjaRUSb6frlTC8lYRNDZ2m7TxXrh4vXHrHsr9ajcJXUZJCwqnnxIEFeHe02hD/7RPJ3xK7tkGCxd/2AUHEHXYylGOePDc/Ck/2VYmGQ0EijcfZeOJ5macZ65TP0Kwvf+IDOko++W94f3Ujglu+lWryBTR61Yaf7zt7fKQVgjxGQjb07F1ze39A00xkYYYbIDSrzjZeebs/pzCjZhrrkzTwReDItTxk9K7cEx5nlRvQul6Wj5USe1uBL5SodP2XCp3mi7XrB/LOt6kDEcdREUzqZUqB5n21VVey0JWihd579PIHFhTXDQpdSJNhOi86Mv8lj3v/XUTRaZBV+2OPVGKSRgmJ0Qv7BkQXOp8tzSN4AINrYD2bMod3jVaGcjg7MYUpJ7B2swWUSa0aLLUe1M2RYzfQ2CiGeN9jCdz8jmQie+HGc5CkaMFtoT1OUt1R7wuO2RNo8pYrP0KJTWpOCHlGn+5r17iDOPXoc/m6a5wN3sxMrARqF5A/PRv3uY/Nb+4bfTeczDZudpxVxGFxe85rahXjh7tSHX5JOiaOXDO9xWj2EBRKKeD4xbgRSBZvjnRrZ0f9ygZjuzFv86KixwYI3HFo21SJQmIaJIUSOoM+r1lQ= on: tags: true - condition: $TRAVIS_TAG =~ ^npmv[0-9]+\.[0-9]+\.[0-9]+$ \ No newline at end of file + condition: $TRAVIS_TAG =~ ^npmv[0-9]+\.[0-9]+\.[0-9]+$ From 622dbd54fc0e9f30b2154515f5f57084dc65c655 Mon Sep 17 00:00:00 2001 From: Matt Hughes Date: Thu, 29 Nov 2018 17:47:58 -0500 Subject: [PATCH 3/3] make tag condition less strict to allow for prerelease tags --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba9e0075ddf..6fce1b87a1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,4 +35,4 @@ deploy: secure: Bs6z6iFpO86mav8qo3cDhcjDckNXDGfcbuZtSWbbrIFe9Q0VSVz046s9Yo7hHjjaRUSb6frlTC8lYRNDZ2m7TxXrh4vXHrHsr9ajcJXUZJCwqnnxIEFeHe02hD/7RPJ3xK7tkGCxd/2AUHEHXYylGOePDc/Ck/2VYmGQ0EijcfZeOJ5macZ65TP0Kwvf+IDOko++W94f3Ujglu+lWryBTR61Yaf7zt7fKQVgjxGQjb07F1ze39A00xkYYYbIDSrzjZeebs/pzCjZhrrkzTwReDItTxk9K7cEx5nlRvQul6Wj5USe1uBL5SodP2XCp3mi7XrB/LOt6kDEcdREUzqZUqB5n21VVey0JWihd579PIHFhTXDQpdSJNhOi86Mv8lj3v/XUTRaZBV+2OPVGKSRgmJ0Qv7BkQXOp8tzSN4AINrYD2bMod3jVaGcjg7MYUpJ7B2swWUSa0aLLUe1M2RYzfQ2CiGeN9jCdz8jmQie+HGc5CkaMFtoT1OUt1R7wuO2RNo8pYrP0KJTWpOCHlGn+5r17iDOPXoc/m6a5wN3sxMrARqF5A/PRv3uY/Nb+4bfTeczDZudpxVxGFxe85rahXjh7tSHX5JOiaOXDO9xWj2EBRKKeD4xbgRSBZvjnRrZ0f9ygZjuzFv86KixwYI3HFo21SJQmIaJIUSOoM+r1lQ= on: tags: true - condition: $TRAVIS_TAG =~ ^npmv[0-9]+\.[0-9]+\.[0-9]+$ + condition: $TRAVIS_TAG =~ ^npmv.*$