## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. ## SPDX-License-Identifier: Apache-2.0 version: 0.2 env: variables: NODE_OPTIONS: "--max-old-space-size=4096" BRANCH: "main" git-credential-helper: "yes" secrets-manager: GH_TOKEN: Github/aws-crypto-tools-ci-bot:ESDK Release Token phases: install: commands: - n 18 # semantic-release wants 18, the image only goes up to 16 - npm install --save-dev semantic-release - npm install @semantic-release/changelog -d - npm install @semantic-release/exec -d - npm install @semantic-release/git -d - npm install --save conventional-changelog runtime-versions: nodejs: 16 pre_build: commands: - git config --global user.name "aws-crypto-tools-ci-bot" - git config --global user.email "no-reply@noemail.local" - git checkout $BRANCH build: commands: # semantic-release uses config stored in ~/.releaserc - npx semantic-release --branches $BRANCH --no-ci