import { S3Client } from '@aws-sdk/client-s3' ; import { getCreds } from '@weco/ts-aws/sts' ; import { region } from '../config' ; import { deploy } from '../deploy' ; export const isCi = process . env . CI === 'true' ; async function run ( ) { const credentials = isCi ? undefined : await getCreds ( 'experience' , 'developer' ) ; const s3Client = new S3Client ( { region , credentials } ) ; await deploy ( s3Client ) ; } run ( ) . catch ( err => { console . error ( err ) ; process . exit ( 1 ) ; } ) ;