https://github.com/serhalp/copy-github-release
Copy a GitHub release from one repository to another
https://github.com/serhalp/copy-github-release
Last synced: 10 months ago
JSON representation
Copy a GitHub release from one repository to another
- Host: GitHub
- URL: https://github.com/serhalp/copy-github-release
- Owner: serhalp
- Created: 2024-06-12T22:16:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-10T13:06:56.000Z (10 months ago)
- Last Synced: 2025-08-10T15:22:09.788Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# copy-github-release
A simple script to copy a GitHub release from one repository to another
## Assumptions
This makes some very specific assumptions:
- The release is linked to a git tag
- The git tag also exists in the target repo
## Prerequisites
- This script requires node v20 or above.
- Generate a GitHub Personal Access Token (PAT) with [the necessary
permissions](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release--fine-grained-access-tokens).
## Usage
Install dependencies:
```sh
corepack enable pnpm
pnpm install
```
To copy release `v1.2.3` from `myname/old-repo` to `myfriend/new-repo`:
```sh
GITHUB_TOKEN="" pnpm run start --from myname/old-repo --to myfriend/new-repo --release v1.2.3
```
To copy multiple releases, just tweak the code or send me a pull request!