Skip to content

Commit 2423f56

Browse files
authored
aj/ensure tsc installed (#507)
* NOMERGE: test publish script with dryrun * WIP: comment out exit so script runs in dry run * fix: Use yarn instead of npm build * feat: Install typescript instead of tsc * feat: node before script as well * feat: Ensure typescript is installed before publish
1 parent 8d2fd3a commit 2423f56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stages:
1414
- apt-get update
1515
- apt-get install nodejs -y
1616
- npm install --global yarn
17-
- npm install --global tsc
17+
- npm install --global typescript
1818

1919
.node-before-script: &node-before-script
2020
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
@@ -175,5 +175,6 @@ publish-npm-package:
175175
{{- end }}
176176
before_script:
177177
- *install-node
178+
- *node-before-script
178179
script:
179180
- ./ci/publish_npm.sh

ci/publish_npm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ echo 'Publishing to NPM'
2828
if [ -d "./dist" ]; then
2929
rm -rf ./dist
3030
fi
31-
npm run build
31+
yarn build
3232
cp ./dist/handler.cjs ./dist/handler.js
3333
npm publish

0 commit comments

Comments
 (0)