diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 95672d754b1..3c1be70a689 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -38,24 +38,24 @@ jobs: key: cypress-binary-${{ hashFiles('package-lock.json') }} - name: Install dependencies - run: npm ci + run: yarn install --frozen-lockfile - name: Lint code - run: npm run lint + run: yarn lint - name: unit tests - run: npm test + run: yarn test env: CI: true - name: Produce build artifacts - run: npm run build + run: yarn build - name: Produce npm artifact run: npm pack - name: E2E Tests - run: npm run cy:ci + run: yarn cy:ci - name: Upload build artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 16409b74b31..14616d62dc0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -37,18 +37,18 @@ jobs: - name: Install dependencies if: steps.cache-primes.outputs.cache-hit != 'true' - run: npm ci --legacy-peer-deps + run: yarn install --frozen-lockfile - name: Lint code - run: npm run lint + run: yarn lint - name: Build SwaggerEditor - run: npm run build + run: yarn build - name: Run all tests - run: npm test + run: yarn test env: CI: true - name: Test build artifacts - run: npm run test:artifact + run: yarn test:artifact diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d215f6d56e0..83b54ca5a00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,18 +41,18 @@ jobs: node-version: 20 - name: Install dependencies - run: npm ci + run: yarn install --frozen-lockfile - name: Prepare for the Release env: REACT_APP_VERSION: ${{ env.NEXT_RELEASE_VERSION }} run: | - npm run lint - npm run test - npm run build:app - npm run cy:ci - npm run build:bundle:esm - npm run build:bundle:umd + yarn lint + yarn test + yarn build:app + yarn cy:ci + yarn build:bundle:esm + yarn build:bundle:umd - name: Semantic Release id: semantic diff --git a/README.md b/README.md index 526f21d6ec7..f346841e1cd 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ If you're building a single-page application, using `swagger-editor` is strongly ## Helpful scripts -Any of the scripts below can be run by typing `npm run