From 75f94bcc20803f5349c135a114d669d55a4ba4f2 Mon Sep 17 00:00:00 2001 From: Eric Holscher <25510+ericholscher@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:26:44 -0700 Subject: [PATCH] Run clean-install in CI type envs (#425) https://docs.npmjs.com/cli/v10/commands/npm-ci --- .github/workflows/main.yml | 2 +- .github/workflows/validator.yml | 2 +- .readthedocs.yaml | 2 +- README.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83432e7bf..a25860a67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: - name: Build static assets run: | - npm install + npm clean-install npm run dist - name: Cache dependencies diff --git a/.github/workflows/validator.yml b/.github/workflows/validator.yml index 4961e382e..790240e17 100644 --- a/.github/workflows/validator.yml +++ b/.github/workflows/validator.yml @@ -19,7 +19,7 @@ jobs: - name: Build static assets run: | - npm install + npm clean-install npm run dist - name: Cache dependencies diff --git a/.readthedocs.yaml b/.readthedocs.yaml index ab9a526de..3d03d73a4 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,7 +6,7 @@ build: python: "3.10" nodejs: "16" commands: - - npm install + - npm clean-install - npm run dist - pip install -r requirements.txt - inv preview diff --git a/README.rst b/README.rst index abde01ffc..71317fab8 100644 --- a/README.rst +++ b/README.rst @@ -36,7 +36,7 @@ if files under ``static-src/`` are modified. .. code-block:: bash - $ npm install + $ npm clean-install $ npm run build # use "npm run dist" for minified builds The static content appears in ``ethicalads-theme/static/``