Skip to content

Commit fdfeea0

Browse files
authored
fix: release script should exit on error. (#504)
1 parent 6a72730 commit fdfeea0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ stages:
1414
- apt-get update
1515
- apt-get install nodejs -y
1616
- npm install --global yarn
17+
- npm install --global tsc
1718

1819
.node-before-script: &node-before-script
1920
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc

ci/publish_npm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# This product includes software developed at Datadog (https://www.datadoghq.com/).
66
# Copyright 2023 Datadog, Inc.
77

8+
set -e
9+
810
NPM_TOKEN=$(aws ssm get-parameter \
911
--region us-east-1 \
1012
--name "ci.datadog-lambda-js.npm-token" \
@@ -28,4 +30,4 @@ if [ -d "./dist" ]; then
2830
fi
2931
npm run build
3032
cp ./dist/handler.cjs ./dist/handler.js
31-
npm publish
33+
npm publish

0 commit comments

Comments
 (0)