Skip to content

Commit af802fe

Browse files
committed
ci: faster "changeversion" step
Problem: "npm ci" is slow, and unnecessary for the "changeversion" task. Solution: - Install "ts-node" specifically, instead of "npm ci". - 2x speedup in "changeversion" step. - Use "--ignore-scripts" to skip the broken, misconfigured postinstall task in "codewhisperer-streaming". https://docs.npmjs.com/cli/v10/commands/npm-install
1 parent 54bd77f commit af802fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

buildspec/release/10changeversion.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ phases:
2424
VERSION=$(node -e "console.log(require('./packages/${TARGET_EXTENSION}/package.json').version);" | (IFS="-"; read -r version unused && echo "$version"))
2525
DATE=$(date)
2626
npm version --no-git-tag-version "$VERSION" -w packages/${TARGET_EXTENSION}
27-
# Call npm ci because 'createRelease' uses ts-node
28-
npm ci
27+
# 'createRelease' uses ts-node.
28+
# Ignore broken "postinstall" script in "src.gen/@amzn/codewhisperer-streaming/package.json".
29+
npm install --ignore-scripts ts-node
2930
- |
3031
npm run createRelease -w packages/${TARGET_EXTENSION}
3132
- |

0 commit comments

Comments
 (0)