小编Pet*_*nko的帖子

无法在 bitbucket 管道中的 node.js 图像中执行 bash 脚本

我正在使用 React 应用程序 - CRA 的 CI/CD 的标准 bitbucket 管道模板。

postbuild在 React App 中有设置步骤来运行简单的 bash 脚本,该脚本只是更改构建文件夹中的文件结构。

在 package.json 中:

"postbuild": "postbuild.sh"
Run Code Online (Sandbox Code Playgroud)

位桶管道.yml:

#  Template React Deploy

#  This template allows you to deploy your React app to an AWS S3 bucket and invalidate the old AWS Cloudfront distribution.
#  The workflow allows running tests, code linting and security scans on feature branches (as well as master).
#  The react app will be validated, deployed to S3 and trigger …
Run Code Online (Sandbox Code Playgroud)

continuous-integration node.js npm bitbucket-pipelines

2
推荐指数
1
解决办法
4218
查看次数