       callback('Unable to parse repository name/owner from package.json repository field')
       return
 
-    publishNewVersion = =>
+    publishNewVersion = (firstTime) =>
       process.stdout.write "Publishing #{pack.name}@#{tag} "
       @createPackageVersion pack.name, tag, (error) ->
         if error?

        return

      if exists
        process.stdout.write "Registering #{pack.name} (#{repository}) "
        @registerPackage repository, (error) =>
          if error?
            process.stdout.write '\u2717\n'.red
            callback(error)
          else
            process.stdout.write '\u2713\n'.green
            publishNewVersion()
      else
        publishNewVersion()

  # Run the publish command with the given options
  run: (options) ->

        if error?
          callback(error)
        else
          callback(null, response.statusCode is 200)

  # Parse the repository in `name/owner` format from the package metadata.
  #
