javascript - github操作失败,无法找到文件?
问题描述
github操作不断失败,找不到文件?我能够在我的终端上运行 npm run build 但不能在 github 操作上运行?我错过了什么?
newproject@0.1.0 build /home/runner/work/newproject/newproject/website react-scripts build
创建优化的生产版本...编译失败。
./src/containers/routes/routes.js 在“./src/containers/routes”中找不到文件“../homePage”。
firebase-hosting-merge.yml
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
name: Build Website
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Website Dependencies
run: cd website && npm install
- name: Audit & Fund Website Dependencies
run: cd website && npm audit fix && npm fund
- name: Build Website
run: cd website && CI=false npm run build <<-------------fail at this
deploy:
name: Deploy Website to Live
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to Live Domain
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:dev
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
解决方案
推荐阅读
- python - 如何将两个输入放入 tensorflow lambda 层
- asp.net-core-2.0 - 无法使用 iText 7 和 .net 解析来自 pdf 的希伯来语文本
- python-3.x - 日期时间 - 错误或功能?
- python - 我想创建目录并保存图像文件,但它的名称已经存在,它应该有数字表示
- java - 播放应用程序 | 如何将 FilePart 传递给其他请求
- django - this.$apollo 始终未定义
- visual-studio-2019 - Visual Studio 2019 IntelliTest 与 .NET Core、.NET Standard 的兼容性?
- python - 如果满足条件,如何交换 Nx2 numpy 数组的行的元素?
- javascript - const [a, b, c] = array 有什么区别?和 const {a, b, c} = 数组;
- security - Microsoft Identity Platform (/common/oauth2/v2.0/token) 上格式无效的 oAuth2.0 access_token