From d1e40051cce95a2050a20fc158e265c3f68c0bf6 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Fri, 1 Dec 2023 23:21:44 -0800 Subject: [PATCH] chore: update publish.js.yml (#92) --- .github/workflows/publish.js.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.js.yml b/.github/workflows/publish.js.yml index 681e2a1..9517b2d 100644 --- a/.github/workflows/publish.js.yml +++ b/.github/workflows/publish.js.yml @@ -14,19 +14,18 @@ jobs: uses: actions/setup-node@v3 with: node-version: lts/* - - run: npm install + - run: npm install --no-package-lock name: Install dependencies - run: npm run test name: Run NPM Test - run: | - rm -rf package-lock.json + rm -rf package-lock.json node_modules # Remove dev and peer dependencies from node_modules - npm prune --omit=dev --omit=peer - rm -rf node_modules/appium + npm prune --omit=dev --omit=peer --no-package-lock name: Remove dev dependencies and appium peer dependencies - - run: npm shrinkwrap + - run: npm shrinkwrap --omit=dev --omit=peer name: Create shrinkwrap - - run: npm install --only=dev + - run: npm install --only=dev --no-package-lock name: Install dev dependencies for the release - run: npx semantic-release env: