Skip to content

Commit

Permalink
build: update .releaserc to publish from appropriate branches (#3341)
Browse files Browse the repository at this point in the history
* build: update `.releaserc` to publish from appropriate branches

* chore: dry run new semantic release config
  • Loading branch information
brian-smith-tcril authored Dec 11, 2024
1 parent 5c53137 commit b4508db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b4508db

Please sign in to comment.