From 871a7a6fe97bda8a637987cc031b7f16fa7c3c10 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 10 Dec 2024 11:28:34 -0500 Subject: [PATCH 1/2] build: update `.releaserc` to publish from appropriate branches --- .releaserc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index 2c101b5028..adf6f9c63c 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,9 @@ { - "branches": ["master", "next"], + "branches": [ + { "name": "release-22.x", "range": "22.x", "channel": "22.x" }, + { "name": "release-23.x", "range": "23.x" }, + { "name": "next", "prerelease": true, "channel": "next" } + ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", From 1818f4da1aff4da01b5aaefbf62945d764df4adf Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 11 Dec 2024 14:17:23 -0500 Subject: [PATCH 2/2] chore: dry run new semantic release config --- .github/workflows/release.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1390787c0c..86ab69041f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,4 +35,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release@22 + run: npx semantic-release@22 --dry-run diff --git a/package.json b/package.json index 9be7168e6b..0289784d0f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "stylelint": "stylelint \"src/**/*.scss\" \"scss/**/*.scss\" \"www/src/**/*.scss\" --config .stylelintrc.json", "lint": "npm run stylelint && eslint --ext .js --ext .jsx --ext .ts --ext .tsx . && npm run lint --workspaces --if-present", "prepublishOnly": "npm run build", - "semantic-release": "semantic-release", + "semantic-release": "semantic-release --dry-run", "snapshot": "jest --updateSnapshot", "start": "npm start --workspace=www", "test": "jest --coverage",