我正在使用 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)