-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): update semantic-release settings
- Loading branch information
Showing
3 changed files
with
68 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module.exports = { | ||
"branches" : "main", | ||
"tagFormat": "v${version}", | ||
"plugins": [ | ||
["@semantic-release/commit-analyzer", { | ||
"preset": "angular", | ||
"releaseRules" : [ | ||
{"type": "docs", "release": "patch"}, | ||
{"type": "docs", "scope": "README", "release": false} | ||
] | ||
}], | ||
["@semantic-release/release-notes-generator", { | ||
"writerOpts": { | ||
"commitsSort": ["scope", "subject"] | ||
} | ||
}], | ||
["@semantic-release/changelog", { | ||
"changelogFile": "CHANGELOG.md" | ||
}], | ||
["@semantic-release/npm", { | ||
"npmPublish": false, | ||
"pkgRoot": `Assets/${process.env.PROJECT_NAME}` }], | ||
["@semantic-release/git", { | ||
"assets": [`Assets/${process.env.PROJECT_NAME}/package.json`, "CHANGELOG.md"], | ||
"message": "chore(release): new release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
}], | ||
["@iam1337/create-unitypackage", { | ||
"packageRoot": `Assets/${process.env.PROJECT_NAME}`, | ||
"projectRoot": "./", | ||
"output": `${process.env.PROJECT_NAME}.unitypackage` | ||
}], | ||
["@semantic-release/github", { | ||
"assets": [ | ||
{"path": `${process.env.PROJECT_NAME}.unitypackage`, "label": `${process.env.PROJECT_NAME} v\${nextRelease.version}`} | ||
] | ||
}] | ||
], | ||
"preset": "angular" | ||
} |