Appveyor 不是 运行 构建脚本

Appveyor not running the build script

你好,我的构建脚本没有创建构建脚本,我不知道是什么原因,Packjson 有正确的脚本

 "build": "npm run silentrenew && react-scripts --max_old_space_size=8192 build",

我已经仔细检查了我的 YML 文件和所有标签

version: '1.0.{build}'
image: Ubuntu
init:
  - cmd: set NODE_OPTIONS=--max-old-space-size=8192
environment:
  REACT_APP_VSA_URL: >-
    https://xzc-e-n-vsa0000-d-api-02.xzc-e-n-snt-06-ut-ase-01.p.azurewebsites.net
  REACT_APP_NOTIFICATIONS_API_SECRET: d8015bf6cab64573b2d7c17bac94bed4
  REACT_APP_EVENT_LOG_SECRET: 3431cec7ecbb42bba1957934c751f02d
install:
  - cmd: npm ci --ignore-scripts
build_script:
  - cmd: |-
      npm --no-git-tag-version version "%APPVEYOR_BUILD_VERSION%"
      npm run build
test_script:
  - cmd: 'npm run test:ci'
artifacts:
  - path: ./build
    name: dpe
deploy:
  - provider: Environment
    name: dpe-dev
    'on':
      branch:
        - internal
        - tablet
on_finish:
  - pwsh: >-
      # upload results to AppVeyor

      $wc = New-Object 'System.Net.WebClient'

      $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)",
      (Resolve-Path .\coverage\junit\junit.xml))

      # upload coverage results to CodeCov

      $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH

      Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh

      bash codecov.sh -s "./coverage/jest/"

这正是我在 AppVeyor 中收到的消息,因为构建没有创建它不是 运行 测试并说它成功。

对于 Linux 构建,前缀必须是 sh: 或根本没有前缀:

build_script:
  - sh: |-
      npm --no-git-tag-version version "$APPVEYOR_BUILD_VERSION"
      npm run build