Skip to content

Commit

Permalink
chore: update delivlib pipeline to use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel committed Mar 1, 2020
1 parent a8fc11f commit 703afed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "npm run build:assets && tsc && tslint --fix --project .",
"build:assets": "npm run build:assets:custom-resource-handlers && npm run build:assets:lambda-handlers",
"build": "yarn build:assets && tsc && tslint --fix --project .",
"build:assets": "yarn build:assets:custom-resource-handlers && yarn build:assets:lambda-handlers",
"build:assets:custom-resource-handlers": "/bin/bash ./build-custom-resource-handlers.sh",
"build:assets:lambda-handlers": "/bin/bash ./build-lambda-handlers.sh",
"package": "/bin/bash ./package.sh",
"watch": "tsc -w",
"test": "/bin/bash ./test.sh",
"cdk": "cdk",
"bump": "standard-version",
"pipeline-update": "npm run build && cdk -a pipeline/delivlib.js deploy",
"pipeline-diff": "npm run build && cdk -a pipeline/delivlib.js diff"
"pipeline-update": "yarn build && cdk -a pipeline/delivlib.js deploy",
"pipeline-diff": "yarn build && cdk -a pipeline/delivlib.js diff"
},
"keywords": [
"aws-cdk",
Expand Down
8 changes: 4 additions & 4 deletions pipeline/delivlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export class DelivLibPipelineStack extends cdk.Stack {
version: '0.2',
phases: {
install: {
commands: [ 'npm ci' ]
commands: [ 'yarn install --frozen-lockfile' ]
},
build: {
commands: [
'npm run build',
'npm test'
'yarn build',
'yarn test'
]
},
post_build: {
Expand All @@ -61,7 +61,7 @@ export class DelivLibPipelineStack extends cdk.Stack {
});

pipeline.autoBump({
bumpCommand: 'npm i && npm run bump',
bumpCommand: 'yarn install --frozen-lockfile && yarn bump',
branch: 'master'
});
}
Expand Down

0 comments on commit 703afed

Please sign in to comment.