Skip to content

Instantly share code, notes, and snippets.

@atazmin
Created October 22, 2024 04:50
Show Gist options
  • Select an option

  • Save atazmin/dd8a5b7429306fcb0a448ca88fec7caa to your computer and use it in GitHub Desktop.

Select an option

Save atazmin/dd8a5b7429306fcb0a448ca88fec7caa to your computer and use it in GitHub Desktop.
Strapi CMS v5 AWS CodePipeline buildspec.yml
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