File tree Expand file tree Collapse file tree 6 files changed +44
-19
lines changed Expand file tree Collapse file tree 6 files changed +44
-19
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,19 @@ jobs:
26
26
uses : actions/setup-node@v2
27
27
with :
28
28
node-version : ' 14'
29
+ - name : Install npm@8.x
30
+ run : npm i -g npm@next-8
29
31
- name : " Setup npm"
30
32
run : |
31
33
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
32
- - name : Install packages
33
- run : |
34
- npm ci
35
- npm run lerna-ci
34
+ - name : Install monorepo packages
35
+ # This installs all the dependencies of ./packages/*
36
+ run : npm ci
37
+ - name : Install example packages
38
+ # Since we are not managing the cdk examples with npm workspaces we install
39
+ # the dependencies in a separate step
40
+ working-directory : ./examples/cdk
41
+ run : npm ci
36
42
- name : Run lint
37
43
run : npm run lerna-lint
38
44
- name : Run tests
Original file line number Diff line number Diff line change @@ -23,13 +23,19 @@ jobs:
23
23
uses : actions/setup-node@v2
24
24
with :
25
25
node-version : ' 14'
26
+ - name : Install npm@8.x
27
+ run : npm i -g npm@next-8
26
28
- name : " Setup npm"
27
29
run : |
28
30
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
29
- - name : Install packages
30
- run : |
31
- npm ci
32
- npm run lerna-ci
31
+ - name : Install monorepo packages
32
+ # This installs all the dependencies of ./packages/*
33
+ run : npm ci
34
+ - name : Install example packages
35
+ # Since we are not managing the cdk examples with npm workspaces we install
36
+ # the dependencies in a separate step
37
+ working-directory : ./examples/cdk
38
+ run : npm ci
33
39
- name : Run lint
34
40
run : npm run lerna-lint
35
41
- name : Run tests
Original file line number Diff line number Diff line change @@ -13,13 +13,19 @@ jobs:
13
13
uses : actions/setup-node@v2
14
14
with :
15
15
node-version : ' 14'
16
+ - name : Install npm@8.x
17
+ run : npm i -g npm@next-8
16
18
- name : " Setup npm"
17
19
run : |
18
20
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
19
- - name : Install packages
20
- run : |
21
- npm ci
22
- npm run lerna-ci
21
+ - name : Install monorepo packages
22
+ # This installs all the dependencies of ./packages/*
23
+ run : npm ci
24
+ - name : Install example packages
25
+ # Since we are not managing the cdk examples with npm workspaces we install
26
+ # the dependencies in a separate step
27
+ working-directory : ./examples/cdk
28
+ run : npm ci
23
29
- name : Run lint
24
30
run : npm run lerna-lint
25
31
- name : Run tests
Original file line number Diff line number Diff line change @@ -23,10 +23,16 @@ jobs:
23
23
uses : actions/setup-node@v2
24
24
with :
25
25
node-version : ' 14'
26
- - name : Install packages
27
- run : |
28
- npm ci
29
- npm run lerna-ci
26
+ - name : Install npm@8.x
27
+ run : npm i -g npm@next-8
28
+ - name : Install monorepo packages
29
+ # This installs all the dependencies of ./packages/*
30
+ run : npm ci
31
+ - name : Install example packages
32
+ # Since we are not managing the cdk examples with npm workspaces we install
33
+ # the dependencies in a separate step
34
+ working-directory : ./examples/cdk
35
+ run : npm ci
30
36
- name : Configure AWS credentials
31
37
uses : aws-actions/configure-aws-credentials@v1.6.1
32
38
with :
Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ First [fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) the
133
133
``` console
134
134
git clone https://github.com/{your-account}/aws-lambda-powertools-typescript.git
135
135
cd aws-lambda-powertools-typescript
136
- npm ci; npm run lerna-ci
136
+ npm ci;
137
+ cd examples/cdk; npm ci
138
+ cd ../..
137
139
npm run init-environment
138
140
```
139
141
Original file line number Diff line number Diff line change 12
12
"test" : " npm run lerna-test" ,
13
13
"commit" : " commit" ,
14
14
"package" : " npm run package" ,
15
- "lerna-ci" : " lerna exec -- npm ci" ,
16
15
"lerna-test" : " lerna exec -- npm run test" ,
17
16
"lerna-test:e2e" : " lerna exec -- npm run test:e2e" ,
18
17
"lerna-package" : " lerna exec -- npm run package" ,
67
66
"dependencies" : {
68
67
"hosted-git-info" : " ^4.0.2"
69
68
}
70
- }
69
+ }
You can’t perform that action at this time.
0 commit comments