version: 0.2 env: variables: BABEL_MODULES: "false" # NODE_ENV: "production" NODE_OPTIONS: "--max-old-space-size=4096" #parameter-store: # key: "value" # key: "value" #secrets-manager: # key: secret-id:json-key:version-stage:version-id # key: secret-id:json-key:version-stage:version-id exported-variables: - DESTINATION_KEY #git-credential-helper: yes #batch: #fast-fail: true #build-list: #build-matrix: #build-graph: phases: #install: #If you use the Ubuntu standard image 2.0 or later, you must specify runtime-versions. #If you specify runtime-versions and use an image other than Ubuntu standard image 2.0, the build fails. #runtime-versions: # name: version # name: version #commands: # - command # - command pre_build: commands: - DESTINATION_KEY=$(jq -r .version ./package.json) - | if [ "$SOURCE_BRANCH" = "main" ]; then DESTINATION_KEY="latest" else DESTINATION_KEY=${DESTINATION_KEY%.*} fi build: commands: - n 14 - npm i -g yarn - yarn install - node_modules/.bin/webpack --config=src-docs/webpack.config.js #post_build: #commands: # - command # - command #reports: #report-name-or-arn: #files: # - location # - location #base-directory: location #discard-paths: yes #file-format: JunitXml | CucumberJson artifacts: files: - '**/*' base-directory: "docs" #cache: #paths: # - paths