部署到npm时删除/解决Travis CI奇怪的消息

时间:2017-03-23 21:58:50

标签: node.js npm travis-ci

将软件包部署到npm注册表时,Travis CI控制台上会显示一些奇怪的附加消息:

标准讯息:

Deploying application
NPM API key format changed recently. If your deployment fails, check your API key in ~/.npmrc.
http://docs.travis-ci.com/user/deployment/npm/
~/.npmrc size: 48
+ my-package@1.0.0

接着是奇怪的消息:

Already up-to-date!
Not currently on any branch.
nothing to commit, working tree clean
Dropped refs/stash@{0} (bff3fdd...1c6d37a)

.travis.yml文件:

dist: trusty
sudo: required

env:
  - CXX="g++-4.8"

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

language: node_js

node_js:
  - 5
  - 6
  - 7

deploy:
  provider: npm
  email: me@me.xx
  api_key:
    secure: ja...w=
  on:
    tags: true
    branch: master

如何摆脱这些消息,以及它们为什么存在?

干杯!

0 个答案:

没有答案