一个项目已经被创建并放置在Github上。我试图探索使用Github Actions构建Angular-cli项目。
Github Action的.yml文件如下所示,
steps:
- uses: actions/checkout@v1
- name: Install NPM
run: npm install
- name: Update Npm
run: npm update
- name: Typescript compiler
uses: iCrawl/action-tsc@v1
- name: NpM angular CLI
uses: npm install angular-cli
- name: Build
run: npm build
在构建过程中出现以下错误:
The pipeline is not valid. .github/workflows/main.yml (Line: 19, Col: 13): Expected format {org}/{repo}[/path]@ref. Actual 'npm install angular-cli',Input string was not in a correct format.