Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lock file format version to version 2 (NPM 7) #33892

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/create-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ jobs:

- name: npm install, build, format and lint
run: |
npm install -g npm@latest
npm ci
npm run test:create-block
1 change: 1 addition & 0 deletions .github/workflows/end2end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:

- name: Npm install and build
run: |
npm install -g npm@latest
npm ci
npm run build

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:

- name: Npm install
run: |
npm install -g npm@latest
npm ci

- name: Compare performance with trunk
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rnmobile-android-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm

- run: npm ci
- run: |
npm install -g npm@latest
npm ci

- name: Restore Gradle cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rnmobile-ios-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm

- run: npm ci
- run: |
npm install -g npm@latest
npm ci

- name: Prepare build cache key
run: find package-lock.json packages/react-native-editor/ios packages/react-native-aztec/ios packages/react-native-bridge/ios -type f -print0 | sort -z | xargs -0 shasum | tee ios-checksums.txt
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
# with an error status code if the lock file is inaccurate.
#
# See: https://github.com/WordPress/gutenberg/issues/16157
run: npm install
run: |
npm install -g npm@latest
npm install

- name: Lint JavaScript and Styles
run: npm run lint
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/storybook-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
cache: npm

- name: Install Dependencies
run: npm ci
run: |
npm install -g npm@latest
npm ci

- name: Build Storybook
run: npm run storybook:build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
# source files with `babel-jest`. Some packages have their own custom
# build tasks, however. These must be run.
run: |
npm install -g npm@latest
npm ci
npx lerna run build

Expand All @@ -67,6 +68,7 @@ jobs:

- name: Npm install and build
run: |
npm install -g npm@latest
npm ci
npm run build

Expand Down Expand Up @@ -104,6 +106,7 @@ jobs:
# source files with `babel-jest`. Some packages have their own custom
# build tasks, however. These must be run.
run: |
npm install -g npm@latest
npm ci
npx lerna run build

Expand Down