Skip to content

Commit

Permalink
ci(publish): add release branch to build info
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Oct 19, 2024
1 parent 87ba67e commit 06a4e05
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ jobs:
run: pnpx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: ${{ github.ref_name }}
54 changes: 0 additions & 54 deletions .releaserc

This file was deleted.

53 changes: 53 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
export default {
branches: [
"main",
{
name: "dev",
prerelease: true,
},
],
plugins: [
[
"@semantic-release/commit-analyzer",
{
releaseRules: [
{ type: "build", scope: "Needs bump", release: "patch" },
],
},
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
assets: ["README.md", "CHANGELOG.md"],
message:
"chore: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
[
"@semantic-release/exec",
{
prepareCmd: `pnpm build --release-branch ${process.env.RELEASE_BRANCH}`,
},
],
[
"@semantic-release/github",
{
assets: [
{
path: "dist/*.js",
},
],
successComment: false,
},
],
[
"@saithodev/semantic-release-backmerge",
{
backmergeBranches: [{ from: "main", to: "dev" }],
clearWorkspace: true,
},
],
],
};

0 comments on commit 06a4e05

Please sign in to comment.