-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from propeller-heads/dc/rename-to-tycho-simula…
…tion chore: Rename all instances of protosim to tycho-simulation
- Loading branch information
Showing
60 changed files
with
464 additions
and
416 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 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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"rust-analyzer.linkedProjects": [ | ||
"./protosim_py/Cargo.toml" | ||
"./tycho_simulation_py/Cargo.toml" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,92 +1,92 @@ | ||
const config = { | ||
branches: [ | ||
"release/+([0-9])?(.{+([0-9]),x}).x", | ||
"main", | ||
"next", | ||
"next-major", | ||
{ | ||
name: "prerelease", | ||
prerelease: "pre", | ||
}, | ||
], | ||
tagFormat: "${version}", | ||
ci: true, | ||
debug: true, | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
preset: "conventionalcommits", | ||
releaseRules: [ | ||
{ type: "breaking", release: "major" }, | ||
{ type: "feat", release: "minor" }, | ||
{ type: "fix", release: "patch" }, | ||
{ type: "refactor", release: "patch" }, | ||
{ type: "security", release: "patch" }, | ||
{ type: "style", release: "patch" }, | ||
{ type: "test", release: false }, | ||
{ type: "docs", release: false }, | ||
{ type: "ci", release: false }, | ||
{ type: "chore", release: false }, | ||
], | ||
}, | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
verifyReleaseCmd: | ||
'echo "VERIFY_RELEASE_VERSION=${nextRelease.version}" >> $GITHUB_OUTPUT', | ||
publishCmd: | ||
'echo "NEXT_RELEASE_VERSION=${nextRelease.version}" >> $GITHUB_OUTPUT', | ||
prepareCmd: [ | ||
"toml set --toml-path Cargo.toml package.version ${nextRelease.version}", | ||
"toml set --toml-path protosim_py/Cargo.toml package.version ${nextRelease.version}", | ||
"toml set --toml-path protosim_py/pyproject.toml project.version ${nextRelease.version}", | ||
"cargo update -p protosim", | ||
"cargo update -p _protosim_py", | ||
].join(" && "), | ||
}, | ||
branches: [ | ||
"release/+([0-9])?(.{+([0-9]),x}).x", | ||
"main", | ||
"next", | ||
"next-major", | ||
{ | ||
name: "prerelease", | ||
prerelease: "pre", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
preset: "conventionalcommits", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
successComment: | ||
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", | ||
labels: true, | ||
releasedLabels: true, | ||
}, | ||
tagFormat: "${version}", | ||
ci: true, | ||
debug: true, | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
preset: "conventionalcommits", | ||
releaseRules: [ | ||
{type: "breaking", release: "major"}, | ||
{type: "feat", release: "minor"}, | ||
{type: "fix", release: "patch"}, | ||
{type: "refactor", release: "patch"}, | ||
{type: "security", release: "patch"}, | ||
{type: "style", release: "patch"}, | ||
{type: "test", release: false}, | ||
{type: "docs", release: false}, | ||
{type: "ci", release: false}, | ||
{type: "chore", release: false}, | ||
], | ||
}, | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
verifyReleaseCmd: | ||
'echo "VERIFY_RELEASE_VERSION=${nextRelease.version}" >> $GITHUB_OUTPUT', | ||
publishCmd: | ||
'echo "NEXT_RELEASE_VERSION=${nextRelease.version}" >> $GITHUB_OUTPUT', | ||
prepareCmd: [ | ||
"toml set --toml-path Cargo.toml package.version ${nextRelease.version}", | ||
"toml set --toml-path tycho_simulation_py/Cargo.toml package.version ${nextRelease.version}", | ||
"toml set --toml-path tycho_simulation_py/pyproject.toml project.version ${nextRelease.version}", | ||
"cargo update -p tycho_simulation", | ||
"cargo update -p _tycho_simulation_py", | ||
].join(" && "), | ||
}, | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
preset: "conventionalcommits", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
successComment: | ||
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", | ||
labels: true, | ||
releasedLabels: true, | ||
}, | ||
], | ||
], | ||
], | ||
}; | ||
|
||
const ref = process.env.GITHUB_REF; | ||
const branch = ref.split("/").pop(); | ||
|
||
if ( | ||
config.branches.some( | ||
(it) => it === branch || (it.name === branch && !it.prerelease), | ||
) | ||
config.branches.some( | ||
(it) => it === branch || (it.name === branch && !it.prerelease), | ||
) | ||
) { | ||
config.plugins.push("@semantic-release/changelog", [ | ||
"@semantic-release/git", | ||
{ | ||
assets: [ | ||
"CHANGELOG.md", | ||
"Cargo.toml", | ||
"Cargo.lock", | ||
"protosim_py/Cargo.toml", | ||
"protosim_py/pyproject.toml", | ||
], | ||
message: | ||
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", | ||
}, | ||
]); | ||
config.plugins.push("@semantic-release/changelog", [ | ||
"@semantic-release/git", | ||
{ | ||
assets: [ | ||
"CHANGELOG.md", | ||
"Cargo.toml", | ||
"Cargo.lock", | ||
"tycho_simulation_py/Cargo.toml", | ||
"tycho_simulation_py/pyproject.toml", | ||
], | ||
message: | ||
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", | ||
}, | ||
]); | ||
} | ||
|
||
module.exports = config; |
Oops, something went wrong.