From 9abe66f7c6a501f4fa971fa1af718228b68d511e Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Wed, 8 Nov 2023 12:26:27 -0800 Subject: [PATCH] chore: use omit to prune dev and peer (#225) --- .github/workflows/publish.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.js.yml b/.github/workflows/publish.js.yml index 8f106c3..681e2a1 100644 --- a/.github/workflows/publish.js.yml +++ b/.github/workflows/publish.js.yml @@ -20,7 +20,8 @@ jobs: name: Run NPM Test - run: | rm -rf package-lock.json - npm prune --production + # Remove dev and peer dependencies from node_modules + npm prune --omit=dev --omit=peer rm -rf node_modules/appium name: Remove dev dependencies and appium peer dependencies - run: npm shrinkwrap