diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index 8fa3d4aca0eee..654a8427d17b2 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Use desired version of NodeJS - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 + uses: actions/setup-node@v3 # v3.6.0 with: node-version: ${{ matrix.node }} cache: npm diff --git a/package.json b/package.json index 7b399f9fbc31f..6ffd18242924c 100644 --- a/package.json +++ b/package.json @@ -281,7 +281,7 @@ "prelint:php": "wp-env run composer \"update --no-interaction\"", "lint:php": "wp-env run composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", - "native": "npm run --prefix packages/react-native-editor", + "native": "npm run --workspace=packages/react-native-editor", "other:changelog": "node ./bin/plugin/cli.js changelog", "other:check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build", diff --git a/test/native/jest.config.js b/test/native/jest.config.js index 39e5e6fc6a593..452cbb0b05eff 100644 --- a/test/native/jest.config.js +++ b/test/native/jest.config.js @@ -39,7 +39,7 @@ module.exports = { // and add it first so https://github.com/facebook/react-native/blob/v0.60.0/Libraries/react-native/react-native-implementation.js#L324-L326 doesn't pick up the Platform npm module. moduleDirectories: [ '../../node_modules/react-native/Libraries/Utilities', - '../../node_modules', + 'node_modules', ], moduleNameMapper: { // Mock the CSS modules. See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets