我开发了Travis发布的npm软件包。构建效果很好,但是我的Travis徽章始终显示build unknown
。我该如何解决?这是我的.travis.yml
。
language: node_js
version: 1.0
node_js: "10"
cache:
directories:
- node_modules
jobs:
include:
- stage: npm release
if: tag IS present
node_js: "10"
script:
- yarn lint
- yarn test
deploy:
edge: true
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
branch: master
notifications:
email: false
根据我的经验,您只需要等待或重新运行构建即可。