From 7eaaa26e0543262864268cdc14488ab85a4629ec Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 15:35:13 +0800 Subject: [PATCH 01/18] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 620172b..9da8bcb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,14 +11,13 @@ jobs: name: Release runs-on: ubuntu-latest - # Needed permissions for tags, releases, etc. permissions: contents: write issues: write pull-requests: write steps: - # 1️⃣ Checkout full repo including history and tags + # 1️⃣ Checkout repository with full history and tags - name: Checkout repository uses: actions/checkout@v4 with: @@ -33,7 +32,10 @@ jobs: # 3️⃣ Install dependencies - name: Install dependencies - run: npm ci + run: | + npm ci + # 🔑 Ensure all semantic-release plugins are installed + npm install --save-dev @semantic-release/git @semantic-release/npm @semantic-release/github @semantic-release/release-notes-generator @semantic-release/commit-analyzer # 4️⃣ Run tests - name: Run tests From bf45855cc7cf6762941bb8e859f7839e4f884698 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:39:16 +0800 Subject: [PATCH 02/18] Update .releaserc.json --- .releaserc.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index 4633162..0a2bed5 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -13,7 +13,6 @@ "assets": ["package.json"], "message": "chore(release): ${nextRelease.version} [skip ci]" }], - "@semantic-release/github" ] -} \ No newline at end of file +} From 2f6a360be0878b185308583157d1cc4e18c72d97 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:44:25 +0800 Subject: [PATCH 03/18] Simplify repository field in package.json Updated repository field format in package.json. --- package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index e4e3206..1486e2f 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,7 @@ }, "description": "Transparent React Boilerplate Apps", "main": "index.js", - "repository": { - "type": "git", - "url": "git+https://github.com/web-slate/react-chef.git" - }, + "repository": "web-slate/react-chef", "engine": { "node": "10", "npm": "5" From 116c1d7cc44bbb2bbf86c6ef26c58f130f83d9a8 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:46:01 +0800 Subject: [PATCH 04/18] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1486e2f..a6eb634 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.0", + "version": "0.2.1", "private": false, "publishConfig": { "access": "public" From 52cab8989988605d3aa82d251f6782c3dc700ce1 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:46:25 +0800 Subject: [PATCH 05/18] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 62289ee..b462f3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 2, "requires": true, "packages": { From 5e89b25988dd7110448a949c240109dbbca17cd7 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:47:58 +0800 Subject: [PATCH 06/18] Create main-push.yml --- .github/workflows/main-push.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main-push.yml diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml new file mode 100644 index 0000000..9139d6a --- /dev/null +++ b/.github/workflows/main-push.yml @@ -0,0 +1,40 @@ +name: Publish to NPM + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test + + - name: Bump version + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + npm version patch -m "chore: bump version to %s [skip ci]" + git push + git push --tags + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish to NPM + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From ff610daec224b7a7725dfcca8a56329d5c275042 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:49:32 +0800 Subject: [PATCH 07/18] Update GitHub Actions workflow for main branch push Removed version bumping step from the workflow. --- .github/workflows/main-push.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml index 9139d6a..56ec0b9 100644 --- a/.github/workflows/main-push.yml +++ b/.github/workflows/main-push.yml @@ -1,4 +1,4 @@ -name: Publish to NPM +name: On Main Branch Push on: push: @@ -24,16 +24,6 @@ jobs: - name: Run tests run: npm test - - name: Bump version - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - npm version patch -m "chore: bump version to %s [skip ci]" - git push - git push --tags - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish to NPM run: npm publish env: From 3957165c2d96ddfb93d6b7b686eba5cec737b3ae Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 18:58:37 +0800 Subject: [PATCH 08/18] Update main-push.yml --- .github/workflows/main-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml index 56ec0b9..8f8932d 100644 --- a/.github/workflows/main-push.yml +++ b/.github/workflows/main-push.yml @@ -1,4 +1,4 @@ -name: On Main Branch Push +name: Main Branch Push on: push: From 794679694926957b6238018c2688654886a83aaf Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:01:22 +0800 Subject: [PATCH 09/18] Update .releaserc.json --- .releaserc.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index 0a2bed5..1a17396 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,14 +1,12 @@ { - "branches": ["release"], + "branches": ["main"], "tagFormat": "v${version}", "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - ["@semantic-release/npm", { "npmPublish": true }], - ["@semantic-release/git", { "assets": ["package.json"], "message": "chore(release): ${nextRelease.version} [skip ci]" From 7a08cf02d6caa504265bb9eaf3888548b70ff521 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:03:29 +0800 Subject: [PATCH 10/18] Update .releaserc.json From 553c2fc2ca2b225209c1d20acecdc25d2256e35a Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:05:01 +0800 Subject: [PATCH 11/18] fix: enable semantic release --- .github/workflows/main-push.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml index 8f8932d..61f4846 100644 --- a/.github/workflows/main-push.yml +++ b/.github/workflows/main-push.yml @@ -1,4 +1,4 @@ -name: Main Branch Push +name: Release and Publish on: push: @@ -6,11 +6,13 @@ on: - main jobs: - publish: + release: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v4 @@ -24,7 +26,9 @@ jobs: - name: Run tests run: npm test - - name: Publish to NPM - run: npm publish + - name: Release with Semantic Release + run: npx semantic-release env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From a1e0024d5ad6d4c9bb5cb90a6924d8f177128189 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:08:12 +0800 Subject: [PATCH 12/18] feat: Add semantic-release dependencies to package.json --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index a6eb634..bd8801e 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,13 @@ "commander": "^7.1.0", "inquirer": "^8.0.0", "shelljs": "^0.8.4" + }, + "devDependencies": { + "semantic-release": "^22.0.12", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^11.0.2", + "@semantic-release/commit-analyzer": "^11.1.0", + "@semantic-release/release-notes-generator": "^12.1.0" } } From a1be0d34c18908b1d1fd6a28d0685459fdd3545c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 20 Jan 2026 11:08:38 +0000 Subject: [PATCH 13/18] chore(release): 0.2.0 [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd8801e..2dc420c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.1", + "version": "0.2.0", "private": false, "publishConfig": { "access": "public" From c272cec453f3b8f3eedf122e22f9fd7c00f72ab4 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:11:40 +0800 Subject: [PATCH 14/18] fix: version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2dc420c..bd8801e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.0", + "version": "0.2.1", "private": false, "publishConfig": { "access": "public" From e420cfbc6b4e16deddfcc2944164a875499c2dfc Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 20 Jan 2026 11:12:09 +0000 Subject: [PATCH 15/18] chore(release): 0.2.0 [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd8801e..2dc420c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.1", + "version": "0.2.0", "private": false, "publishConfig": { "access": "public" From 5c8f442c4fabe8f3f345ccbec03c58c5cc7fdd2f Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:18:57 +0800 Subject: [PATCH 16/18] feat: test semantic release --- .github/workflows/main-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml index 61f4846..afeb319 100644 --- a/.github/workflows/main-push.yml +++ b/.github/workflows/main-push.yml @@ -1,4 +1,4 @@ -name: Release and Publish +name: Semantic Release on: push: From 2639d3f01c85827eb83637752cc538240088d728 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 20 Jan 2026 11:19:22 +0000 Subject: [PATCH 17/18] chore(release): 0.3.0 [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2dc420c..ca3e1c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chef", - "version": "0.2.0", + "version": "0.3.0", "private": false, "publishConfig": { "access": "public" From 320f5633186cb114429ee769dfe41548d349b0a9 Mon Sep 17 00:00:00 2001 From: "Venkat.R" Date: Tue, 20 Jan 2026 19:24:08 +0800 Subject: [PATCH 18/18] feat: publish on release branch --- .github/workflows/main-push.yml | 34 ------------------------------- .github/workflows/npm-publish.yml | 9 ++++++-- 2 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/main-push.yml diff --git a/.github/workflows/main-push.yml b/.github/workflows/main-push.yml deleted file mode 100644 index afeb319..0000000 --- a/.github/workflows/main-push.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Semantic Release - -on: - push: - branches: - - main - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - registry-url: 'https://registry.npmjs.org' - - - name: Install dependencies - run: npm install - - - name: Run tests - run: npm test - - - name: Release with Semantic Release - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9da8bcb..d6da661 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,8 +1,10 @@ name: Semantic Release and Publish -# Trigger only when release branch gets new commits (PR merge) +# Trigger only when PR from main to release is merged on: - push: + pull_request: + types: + - closed branches: - release @@ -10,6 +12,8 @@ jobs: release: name: Release runs-on: ubuntu-latest + # Only run if PR was merged (not just closed) + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'release' && github.event.pull_request.head.ref == 'main' permissions: contents: write @@ -21,6 +25,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: + ref: release fetch-depth: 0 # 2️⃣ Setup Node.js