diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d812d79a..7dae8862 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x] + node-version: [14.x] steps: - uses: actions/checkout@v3 @@ -24,6 +24,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm install - run: npm run build --if-present - run: npm test --if-present diff --git a/package.json b/package.json index 357fb1b7..fe3caf78 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "install:clean": "rm -rf node_modules package-lock.json", - "preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions", + "preinstall": "npm run install:clean && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions", "deploy": "chmod +x ./deploy.sh && ./deploy.sh" }, "author": "beatrizsmerino@gmail.com",