
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
semantic-release-git-publish
Advanced tools
A semantic-release plugin that publishes by pushing the contents of this Git repository to another Git repository
A semantic-release plugin that publishes by syncing the contents of the working directory to another Git repository and tagging that repository with the release version.
This plugin was developed to facilitate publishing a Swift package inside of a monorepo. Along with the semantic-release-monorepo plugin, the Swift subpackage of the monorepo can be be "published" to it's own standalone repo for public consumption.
There may be other use cases where this plugin is useful, such as creating a public copy of a private repository.
| Step | Description |
|---|---|
verifyConditions | Verifies that the destinationRepositoryUrl option is set to a valid Git repository. |
publish | Clones the destination repository, updates the content to match the current working directory, commits the changes, and tags the commit with the release version. |
Install the plugin as a development dependency with
npm install semantic-release-git-publish --save-dev
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/git",
[
"semantic-release-git-publish",
{
"destinationRepositoryUrl": "git@gitlab.com:destination-repository.git",
"ignorePaths": [
"secret.txt",
"**/*.secret"
]
}
]
]
}
| Options | Description | Default |
|---|---|---|
destinationRepositoryUrl | The path to the destination repository | |
ignorePaths | (Optional) An array of glob patterns to exclude from file syncing. Matching files in the working directory will not get synced to the destination repo or be modified in the destination repo if they already exist. Globs are minimatch patterns. | [ ] |
This plugin does not currently handle symlinks and possibly some other cases. It handles all scenarios involving changing files and directories. Anything not supported will log an error and cause the publish step to fail. For more details, see /src/utils/syncFiles.ts.
FAQs
A semantic-release plugin that publishes by pushing the contents of this Git repository to another Git repository
We found that semantic-release-git-publish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.