From 9a5a0a3c4a2efe97aa1d6e3311a1166149b3bee4 Mon Sep 17 00:00:00 2001 From: Michael Wiebe Date: Thu, 23 May 2024 22:42:19 -0400 Subject: [PATCH 1/3] switched repo to yarn, had to add querystring dep --- .github/workflows/nightly-build.yml | 6 +- .github/workflows/nodejs.yml | 10 +- .github/workflows/release.yml | 12 +- README.md | 15 +- dist/swagger-editor-es-bundle.js.map | 2 +- package-lock.json | 31390 ------------------------ package.json | 5 +- release/.release-it.json | 14 +- swagger-editor-dist-package/README.md | 2 +- yarn.lock | 15124 ++++++++++++ 10 files changed, 15158 insertions(+), 31422 deletions(-) delete mode 100644 package-lock.json create mode 100644 yarn.lock diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 95672d754b1..89cd1b50ded 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -41,7 +41,7 @@ jobs: run: npm ci - name: Lint code - run: npm run lint + run: yarn lint - name: unit tests run: npm test @@ -49,13 +49,13 @@ jobs: 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..cba65a47158 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,12 +47,12 @@ jobs: 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