Sha256: 170865a64c26524fdb6f94b671496ba6c3ca90f6c247576dbc0587ab3ac7a4c3

Contents?: true

Size: 489 Bytes

Versions: 40

Compression:

Stored size: 489 Bytes

Contents

require 'travis/cli/setup'

module Travis
  module CLI
    class Setup
      class NPM < Service
        description "automatic release to npm"

        def run
          deploy 'npm', 'release' do |config|
            config['email'] ||= ask("npm email address: ") { |q| q }.to_s
            config['api_key'] ||= ask("npm api key: ") { |q| q.echo = "*" }.to_s

            on("release only tagged commits? ", config, 'tags' => true)
          end
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
travis-1.11.1 lib/travis/cli/setup/npm.rb
travis-1.11.0 lib/travis/cli/setup/npm.rb
travis-1.10.1.travis.1341.9 lib/travis/cli/setup/npm.rb
travis-1.10.1.travis.1321.9 lib/travis/cli/setup/npm.rb
travis-1.10.1.travis.1312.9 lib/travis/cli/setup/npm.rb
travis-1.10.1.travis.1311.9 lib/travis/cli/setup/npm.rb
travis-1.10.1.travis.1305.9 lib/travis/cli/setup/npm.rb
travis-1.10.0 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1304.9 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1303.9 lib/travis/cli/setup/npm.rb
travis-1.10.0.pre.rc4 lib/travis/cli/setup/npm.rb
travis-1.10.0.pre.rc3 lib/travis/cli/setup/npm.rb
travis-1.10.0.pre.rc2 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1288.9 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1285.9 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1279.9 lib/travis/cli/setup/npm.rb
travis-1.10.0.pre.rc1 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1254.9 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1236.9 lib/travis/cli/setup/npm.rb
travis-1.9.2.travis.1224.9 lib/travis/cli/setup/npm.rb