From 6c3d3e58333d745b13e1062786c24db136c41cd2 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Fri, 1 Dec 2023 22:50:54 -0800 Subject: [PATCH] fix: tune a bit more --- .github/workflows/publish.js.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.js.yml b/.github/workflows/publish.js.yml index 4bc2787f1..ba91b7654 100644 --- a/.github/workflows/publish.js.yml +++ b/.github/workflows/publish.js.yml @@ -18,22 +18,25 @@ jobs: with: node-version: lts/* check-latest: true - - run: npm install + - run: npm install --no-package-lock name: Install dependencies + - run: ls -all - run: npm run test name: Run NPM Test + - run: ls -all - run: | rm -rf node_modules rm -rf package-lock.json - npm prune --omit=dev --omit=peer + npm prune --omit=dev --omit=peer --no-package-lock name: Remove dev dependencies and appium peer dependencies - run: npm shrinkwrap name: Create shrinkwrap + - run: ls -all # "--no-package-lock" prevent adding dev dependencies - run: npm install --only=dev --no-package-lock name: Install dev dependencies for the release - - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release + # - run: npx semantic-release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + # name: Release