From 0a612f92e1631d3e73eac08e46166c7bd149fb29 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Tue, 4 Jun 2019 20:26:11 -0400 Subject: [PATCH] Automatically deploy to NPM (#5527) * Added deployments to NPM on tagged releases Previously this was being done manually after each release, which resulted in a few releases not showing up on NPM for a significant amount of time. Now the builds should be automatically pushed, which should hopefully improve a lot of the issues we were seeing. * Drop IRC notifications We no longer use this IRC channel. * Clean up .travis.yml * Remove grunt ci This is no longer needed now that we don't do anything special for CI builds. This also allows us to minify during CI builds, which will be useful for the tagged builds which depend on these minified files being up to date (so they can get released as well). --- .travis.yml | 22 +++++++++++----------- Gruntfile.js | 2 -- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0af4c696..704722b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ language: node_js -sudo: false - node_js: - - 0.10 + - "0.10" env: global: @@ -11,12 +9,14 @@ env: - secure: BU5BPRx6H4O3WJ509YPixjUxg+hDF3z2BVJX6NiGmKWweqvCEYFfiiHLwDEgp/ynRcF9vGVi1V4Ly1jq7f8NIajbDZ5q443XchZFYFg78K/EwD5mK6LYt16zb7+Jn0KbzwHeGRGzc9AvcEYlW6i634cSCm4n3BnqtF5PpogSzdw= script: - - grunt ci + - grunt -notifications: - email: false - irc: - channels: - - "chat.freenode.net#select2" - on_success: change - on_failure: always +deploy: + - provider: npm + email: + secure: T/xRKPHPI1GwomNYb3nvMntS805vdzewDKNwB+lDS6WOfXQx9td5CIbkhpfAW3zVjdbsXFVSOzufesY+RtF4gq8yvW5FhV7py6gwnEyW8LybgYssUd08W/fMoiCjORRXxwqnoHEh956z3Z9De4Q9ow47m8iniAsKRR1I1DHaKs0= + api_key: + secure: BCdGeRjm8i9V+gbaVNIYk7+zLyeLOQDm6eCH+NYVX137gkNBoYqL/U7GGfHoWxEvrVgN8tcCM6RrS5qU+Wu/Wy/esz1PeSoFxKEIJx+p6BCzACFl1tJWqdm/JlmnuCiZdHs6TTtfKQwaJAK4H0Kfp5qJZS9QA/RxBpkfBQZW9VY= + on: + tags: true + skip_cleanup: true diff --git a/Gruntfile.js b/Gruntfile.js index 2cefb849..5aef9b95 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -255,6 +255,4 @@ module.exports = function (grunt) { ]); grunt.registerTask('minify', ['uglify', 'sass:dist']); grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']); - - grunt.registerTask('ci', ['compile', 'test']); };