【发布时间】:2020-05-25 11:42:27
【问题描述】:
我有一个带有react 客户端的golang 存储库。我想为我的客户使用 github 操作设置 CI。 React 客户端位于工作区的 client 文件夹中。
我已经编写了以下工作流程
name : Node.js CI
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: client
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: yarn install
- run: yarn build
但在提交时显示以下错误
Run yarn build1s
##[error]Process completed with exit code 1.
Run yarn build
yarn run v1.21.1
error Couldn't find a package.json file in "/home/runner/work/evential/evential"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Process completed with exit code 1
sn-p
- uses: actions/checkout@v2
with:
path: client
不会使以下步骤在 client 文件夹中运行。
需要帮助。提前致谢。
【问题讨论】: