From d0ad70e29b85be72e1536999db924569a5f5e668 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:20:45 -0500 Subject: [PATCH] release(config): reconfigured deps for release --- .github/workflows/ci.yml | 3 +++ package.json | 11 ++++------- src/semantic-release/index.js | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 953d2b7..d204d4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,9 @@ jobs: - name: Run Prettier run: pnpm prettier --check . # Use pnpm + - name: List Existing Semantic Release Branches + run: git branch -r | grep 'semantic-release-pr-' # Use pnpm + - name: Run Semantic Release if: github.ref == 'refs/heads/main' env: diff --git a/package.json b/package.json index 9432335..b8d49a3 100644 --- a/package.json +++ b/package.json @@ -51,15 +51,12 @@ "dependencies": { "@babel/core": "^7.24.0", "@babel/eslint-parser": "^7.23.10", - "@commitlint/cli": "^19.0.3", - "@commitlint/config-conventional": "^19.0.3", "@rushstack/eslint-patch": "^1.7.2", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/parser": "^7.1.1", - "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-typescript": "^3.6.1", @@ -75,22 +72,22 @@ "eslint-plugin-tsdoc": "^0.2.17", "eslint-plugin-unicorn": "^51.0.1", "eslint-plugin-vitest": "^0.3.22", - "husky": "^9.0.11", "lint-staged": "^15.2.10", - "prettier": "^3.3.3", "prettier-plugin-packagejson": "^2.4.12", "prettier-plugin-sort-imports": "^1.8.6", - "semantic-release": "^23.0.2", "semantic-release-github-pullrequest": "^1.3.0", - "typescript": "^5.3.3", "url-join": "^4.0.1" }, "engines": { "node": ">=18.18" }, "peerDependencies": { + "@commitlint/cli": "^19.0.3", + "@commitlint/config-conventional": "^19.0.3", "eslint": "^8.57.0", + "husky": "^9.0.11", "prettier": "^3.3.3", + "semantic-release": "^23.0.2", "typescript": "^5.3.3" }, "publishConfig": { diff --git a/src/semantic-release/index.js b/src/semantic-release/index.js index 3a18f1c..4acd463 100644 --- a/src/semantic-release/index.js +++ b/src/semantic-release/index.js @@ -11,12 +11,12 @@ module.exports = { '@semantic-release/changelog', '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', - '@semantic-release/npm', [ 'semantic-release-github-pullrequest', { assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'], baseBranch: 'main', + branch: 'release', // eslint-disable-next-line no-template-curly-in-string -- required by `semantic-release`. message: 'chore(release): ${nextRelease.version} [skip ci]', pullrequestBody: @@ -27,5 +27,6 @@ module.exports = { }, ], '@semantic-release/github', + '@semantic-release/npm', ], };