Skip to content

Commit

Permalink
update package-lock with npm 8. use newer dep override mechanism. upd…
Browse files Browse the repository at this point in the history
…ate workflows (#607)
  • Loading branch information
srprash authored Jul 19, 2023
1 parent 3c9d946 commit cfcb476
Show file tree
Hide file tree
Showing 7 changed files with 31,903 additions and 2,229 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '15.x'
node-version: '16.x'

- name: Run smoke test
id: distribution-availability
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
node-version: 16.x

- run: npm install -g npm@latest
- run: npm install -g npm@8.19.4

- name: Cache NPM modules
uses: actions/cache@v3
Expand All @@ -33,7 +33,7 @@ jobs:

- name: Bootstrap
run: |
npm install
npm ci
npx lerna bootstrap --no-ci --hoist
- name: Lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: true

- run: npm install -g npm@latest
- run: npm install -g npm@8.19.4

- name: Cache NPM modules
uses: actions/cache@v3
Expand All @@ -58,7 +58,7 @@ jobs:

- name: Bootstrap
run: |
npm install
npm ci
npx lerna bootstrap --no-ci --hoist
- name: Build
Expand Down
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,32 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- run: npm install -g [email protected]

- name: Cache NPM modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: $HOME/.npm
key: ${{ matrix.os }}-${{ hashFiles('package-lock.json') }}
path: |
node_modules
package-lock.json
packages/*/node_modules
packages/*/package-lock.json
key: release-ubuntu-latest-${{ hashFiles('package.json', 'packages/*/package.json') }}-06142023

- name: Execute tests with Lerna
- name: Bootstrap
run: |
npm ci
npx lerna bootstrap --no-ci --hoist
- name: Build
run: |
npx lerna bootstrap --hoist
npx lerna run compile
shell: bash

- name: Execute tests with Lerna
run: |
npx lerna run test
shell: bash

- name: Publish package to npm
run: npx lerna publish from-package --yes --exact --no-verify-access
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ AWS will not:

## Testing from Source

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

0 comments on commit cfcb476

Please sign in to comment.