From a5fa6ffd538cce8d7743b4d743dbfcc197c77090 Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 19 Jul 2023 20:43:03 -0400 Subject: [PATCH] build: add replace-json-property as dev dependency --- .github/workflows/release.yml | 66 ++++------------------------------- package.json | 1 + yarn.lock | 25 ++++++++++++- 3 files changed, 31 insertions(+), 61 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfd632949..8529d6364 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,70 +1,14 @@ -name: RELEASE +name: release on: workflow_dispatch: push: branches: - main -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version-file: .node-version - - run: corepack enable - - run: yarn --version - - uses: actions/setup-node@v3 - with: - cache: 'yarn' - cache-dependency-path: '**/yarn.lock' - - name: Install - run: yarn install --frozen-lockfile --prefer-offline - - name: Build - run: yarn build - unit: - runs-on: ubuntu-latest - needs: - - build - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version-file: .node-version - - run: corepack enable - - run: yarn --version - - uses: actions/setup-node@v3 - with: - cache: 'yarn' - cache-dependency-path: '**/yarn.lock' - - name: Install - run: yarn install --frozen-lockfile --prefer-offline - - name: Test - run: yarn test - - e2e: - runs-on: ubuntu-latest - needs: - - build - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version-file: .node-version - - run: corepack enable - - run: yarn --version - - uses: actions/setup-node@v3 - with: - cache: 'yarn' - cache-dependency-path: '**/yarn.lock' - - name: Install - run: yarn install --frozen-lockfile --prefer-offline - - name: Install Cypress - run: npx cypress install - - name: End-to-end test - run: yarn e2e +env: + NODE_OPTIONS: --max-old-space-size=6144 +jobs: main: runs-on: ubuntu-latest needs: @@ -84,6 +28,8 @@ jobs: cache-dependency-path: '**/yarn.lock' - name: Install run: yarn install --frozen-lockfile --prefer-offline + - name: Build + run: yarn build - name: Release run: npx semantic-release env: diff --git a/package.json b/package.json index 681b35589..3358009ff 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,7 @@ "postcss-preset-env": "~8.0.1", "postcss-url": "~10.1.3", "prettier": "^2.6.2", + "replace-json-property": "^1.9.0", "tailwindcss": "^3.0.2", "ts-jest": "^29.1.0", "ts-node": "10.9.1", diff --git a/yarn.lock b/yarn.lock index 300b01430..b27bcd5f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8158,7 +8158,7 @@ commander@^10.0.0: resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -commander@^2.20.0: +commander@^2.19.0, commander@^2.20.0: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -12693,6 +12693,15 @@ jsonc-parser@3.2.0, jsonc-parser@^3.2.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +jsonfile@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-5.0.0.tgz#e6b718f73da420d612823996fdf14a03f6ff6922" + integrity sha512-NQRZ5CRo74MhMMC3/3r5g2k4fjodJ/wh8MxjFbCViWKFjxrnudWSY5vomh+23ZaXzAS7J3fBZIR2dV6WbmfM0w== + dependencies: + universalify "^0.1.2" + optionalDependencies: + graceful-fs "^4.1.6" + jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" @@ -16295,6 +16304,15 @@ renderkid@^3.0.0: lodash "^4.17.21" strip-ansi "^6.0.1" +replace-json-property@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/replace-json-property/-/replace-json-property-1.9.0.tgz#8bc988fdd1c19088d3105203998b67deb72f2a69" + integrity sha512-+X6pZXsXSUKT9OzpJQjeDgLp9d0Ck7fsLZcNLhVL29XkwmB5oBz5T3fovs23/P0rLpzbCXrzG9/mbnyDrau+pw== + dependencies: + chalk "^4.1.0" + commander "^2.19.0" + jsonfile "^5.0.0" + request-progress@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-3.0.0.tgz#4ca754081c7fec63f505e4faa825aa06cd669dbe" @@ -18126,6 +18144,11 @@ unist-util-visit@^2.0.0: unist-util-is "^4.0.0" unist-util-visit-parents "^3.0.0" +universalify@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"