Created
October 22, 2024 04:50
-
-
Save atazmin/dd8a5b7429306fcb0a448ca88fec7caa to your computer and use it in GitHub Desktop.
Strapi CMS v5 AWS CodePipeline buildspec.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| nodejs: 20 | |
| commands: | |
| - echo "Current Node.js version:" | |
| - node -v | |
| - echo "Current npm version:" | |
| - npm -v | |
| pre_build: | |
| commands: | |
| - echo "Pre-build started on $(date)" | |
| - echo "Installing source NPM dependencies..." | |
| - npm ci | |
| build: | |
| commands: | |
| - echo "Build started on $(date)" | |
| - echo "Compiling the Node.js code" | |
| - npm run build | |
| post_build: | |
| commands: | |
| - echo "Build completed on $(date)" | |
| - rm -rf node_modules | |
| artifacts: | |
| files: | |
| - '**/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment