Skip to content

Commit

Permalink
build: add replace-json-property as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin committed Jul 20, 2023
1 parent 79ba966 commit a5fa6ff
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 61 deletions.
66 changes: 6 additions & 60 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 24 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down Expand Up @@ -12693,6 +12693,15 @@ [email protected], 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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

1 comment on commit a5fa6ff

@vercel
Copy link

@vercel vercel bot commented on a5fa6ff Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spartan – ./

www.spartan.ng
spartan-git-main-goetzrobin.vercel.app
spartan.ng
spartan-goetzrobin.vercel.app

Please sign in to comment.