From e6b6d05822ac579033683a51674afc1bd97dc57b Mon Sep 17 00:00:00 2001 From: Walid <87608619+Walidoux@users.noreply.github.com> Date: Sat, 13 Aug 2022 19:48:29 +0100 Subject: [PATCH 1/5] fix: resolve unrecognizable ci job (#43) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5516f5..d29a7d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: branches: [master] jobs: - ci: + build-release: runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/master' }} needs: [quality] From a94bd4f71164a05a6d6e98a3a72bc54eca392d79 Mon Sep 17 00:00:00 2001 From: Walid <87608619+Walidoux@users.noreply.github.com> Date: Sat, 13 Aug 2022 20:08:08 +0100 Subject: [PATCH 2/5] refactor(workflow): reconfigure ci.yml (#44) * fix: resolve unrecognizable ci job * refactor(workflow): reconfigure ci.yml --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d29a7d8..1503bd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,7 @@ on: jobs: build-release: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/master' }} - needs: [quality] + steps: - name: Checkout code uses: actions/checkout@v3.0.0 From 773d775f31c9a029ea31418b76651b94ebb06cca Mon Sep 17 00:00:00 2001 From: Walid <87608619+Walidoux@users.noreply.github.com> Date: Sat, 13 Aug 2022 20:13:10 +0100 Subject: [PATCH 3/5] fix: add missing semantic release config (#45) * fix: resolve unrecognizable ci job * refactor(workflow): reconfigure ci.yml * fix: add missing semantic release config --- .releaserc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .releaserc diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..3c8d391 --- /dev/null +++ b/.releaserc @@ -0,0 +1,21 @@ +{ + "branches": [ + "master" + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits" + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits" + } + ], + "@semantic-release/npm", + "@semantic-release/github" + ] +} From dbcc476c26e75943e04803515f6965d834de7694 Mon Sep 17 00:00:00 2001 From: Walid <87608619+Walidoux@users.noreply.github.com> Date: Sun, 14 Aug 2022 01:04:45 +0100 Subject: [PATCH 4/5] refactor: semantic release and ci workflow (#46) * refactor: update ci and semantic release --- .github/workflows/ci.yml | 2 +- .github/workflows/lint.yml | 2 +- package.json | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1503bd9..030ba28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: with: node-version: 16.x - - name: Install packages + - name: Install dependencies run: yarn --frozen-lockfile - name: Building project diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 72fa61f..91956e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: with: node-version: 16.x - - name: Install packages + - name: Install dependencies run: yarn --frozen-lockfile - name: Next.js linting diff --git a/package.json b/package.json index 0d2eca7..ef04a1d 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,8 @@ "lint:prettier": "prettier \".\" --check", "lint:commit": "commitlint", "lint:staged": "lint-staged", - "release": "semantic-release", - "generate": "plop", - "semantic-release": "semantic-release" + "release": "semantic-release --branches main", + "generate": "plop" }, "dependencies": { "@fontsource/open-sans": "^4.5.11",