Skip to content

Commit cfcb476

Browse files
authored
update package-lock with npm 8. use newer dep override mechanism. update workflows (#607)
1 parent 3c9d946 commit cfcb476

File tree

7 files changed

+31903
-2229
lines changed

7 files changed

+31903
-2229
lines changed

.github/workflows/continuous-monitoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@v1
2525
with:
26-
node-version: '15.x'
26+
node-version: '16.x'
2727

2828
- name: Run smoke test
2929
id: distribution-availability

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
node-version: 16.x
2121

22-
- run: npm install -g npm@latest
22+
- run: npm install -g npm@8.19.4
2323

2424
- name: Cache NPM modules
2525
uses: actions/cache@v3
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Bootstrap
3535
run: |
36-
npm install
36+
npm ci
3737
npx lerna bootstrap --no-ci --hoist
3838
3939
- name: Lint

.github/workflows/pr-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
node-version: ${{ matrix.node-version }}
4545
check-latest: true
4646

47-
- run: npm install -g npm@latest
47+
- run: npm install -g npm@8.19.4
4848

4949
- name: Cache NPM modules
5050
uses: actions/cache@v3
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Bootstrap
6060
run: |
61-
npm install
61+
npm ci
6262
npx lerna bootstrap --no-ci --hoist
6363
6464
- name: Build

.github/workflows/release.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,32 @@ jobs:
2222
node-version: '16.x'
2323
registry-url: 'https://registry.npmjs.org'
2424

25+
- run: npm install -g [email protected]
26+
2527
- name: Cache NPM modules
26-
uses: actions/cache@v2
28+
uses: actions/cache@v3
2729
with:
28-
path: $HOME/.npm
29-
key: ${{ matrix.os }}-${{ hashFiles('package-lock.json') }}
30+
path: |
31+
node_modules
32+
package-lock.json
33+
packages/*/node_modules
34+
packages/*/package-lock.json
35+
key: release-ubuntu-latest-${{ hashFiles('package.json', 'packages/*/package.json') }}-06142023
3036

31-
- name: Execute tests with Lerna
37+
- name: Bootstrap
38+
run: |
39+
npm ci
40+
npx lerna bootstrap --no-ci --hoist
41+
42+
- name: Build
3243
run: |
33-
npx lerna bootstrap --hoist
3444
npx lerna run compile
45+
shell: bash
46+
47+
- name: Execute tests with Lerna
48+
run: |
3549
npx lerna run test
50+
shell: bash
3651

3752
- name: Publish package to npm
3853
run: npx lerna publish from-package --yes --exact --no-verify-access

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ AWS will not:
9595

9696
## Testing from Source
9797

98-
This repo uses [Lerna](https://lerna.js.org) to manage multiple packages. To install Lerna as a CLI:
98+
This repo uses [Lerna](https://lerna.js.org) (use v6 or lower) to manage multiple packages. To install Lerna as a CLI:
9999
```
100100
npm install -g lerna
101101
```

0 commit comments

Comments
 (0)