Travis CI在构建后不更新徽章

问题描述 投票:0回答:1

我开发了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
travis-ci
1个回答
0
投票

根据我的经验,您只需要等待或重新运行构建即可。

© www.soinside.com 2019 - 2024. All rights reserved.