Skip to content

Commit

Permalink
Try installing npm 7 in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 6, 2021
1 parent 8c59510 commit 2861805
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 5 deletions.
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
FORCE_REDUCED_MOTION=true 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 @@ -33,7 +33,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
4 changes: 3 additions & 1 deletion packages/block-library/src/group/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"style": true,
"width": true
},
"__experimentalLayout": true
"__experimentalLayout": {
"allowSwitching": true
}
},
"editorStyle": "wp-block-group-editor",
"style": "wp-block-group"
Expand Down

0 comments on commit 2861805

Please sign in to comment.