Sha256: 72c4b2360b4c8ff41e3149822ef519ac7ccaab3ec5c3792a6088b4eb8349251e

Contents?: true

Size: 489 Bytes

Versions: 344

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

344 entries across 344 versions & 3 rubygems

Version Path
travis-1.8.11.travis.1010.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1009.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1008.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1007.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1004.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1003.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1002.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1001.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.1000.9 lib/travis/cli/setup/npm.rb
travis-1.8.11.travis.998.9 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.997.9 lib/travis/cli/setup/npm.rb
travis-1.8.10 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.994.9 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.953.11 lib/travis/cli/setup/npm.rb
travis-akerl-1.8.9.1 lib/travis/cli/setup/npm.rb
travis-akerl-1.8.9 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.950.11 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.948.11 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.946.11 lib/travis/cli/setup/npm.rb
travis-1.8.10.travis.944.11 lib/travis/cli/setup/npm.rb