Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/storybook-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:

- name: Install test-runner and Playwright dependencies
run: |
npm install --no-save @storybook/test-runner@0.24.2
# storybook and playwright are needed as peer dependencies of @storybook/test-runner for pnpm
STORYBOOK_VERSION=$(node -p "require('./storybook/package.json').devDependencies.storybook")
npm install --no-save "storybook@$STORYBOOK_VERSION" @storybook/test-runner@0.24.2 playwright
npx playwright install --with-deps

- name: Serve Storybook and run tests
Expand Down
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
save-exact = true
engine-strict = true
legacy-peer-deps = true
prefer-dedupe = true
lockfile-version = 3
install-strategy = "nested"
strict-peer-deps = true
4 changes: 4 additions & 0 deletions bin/test-create-block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ module.exports = {
};
EOF

# Set NODE_PATH so wp-scripts can find its dependencies (e.g., webpack) which
# may not be hoisted to root node_modules with nested install strategies.
export NODE_PATH="../packages/scripts/node_modules:$NODE_PATH"

status "Formatting files..."
../node_modules/.bin/wp-scripts format

Expand Down
Loading
Loading