{"id":15660447,"url":"https://github.com/ije/publish","last_synced_at":"2025-05-05T21:10:12.314Z","repository":{"id":54154196,"uuid":"304637430","full_name":"ije/publish","owner":"ije","description":"Publish your module with one command in Deno.","archived":false,"fork":false,"pushed_at":"2024-04-07T02:55:04.000Z","size":35,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T15:07:48.418Z","etag":null,"topics":["deno","package","publish"],"latest_commit_sha":null,"homepage":"https://deno.land/x/publish","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ije.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-16T13:36:50.000Z","updated_at":"2023-11-03T23:17:58.000Z","dependencies_parsed_at":"2024-10-03T13:21:51.009Z","dependency_job_id":null,"html_url":"https://github.com/ije/publish","commit_stats":{"total_commits":58,"total_committers":3,"mean_commits":"19.333333333333332","dds":0.3275862068965517,"last_synced_commit":"7b63d095195f3aa0a4e71bf13f110f46000f4af7"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Fpublish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Fpublish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Fpublish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Fpublish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ije","download_url":"https://codeload.github.com/ije/publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242772269,"owners_count":20182741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","package","publish"],"created_at":"2024-10-03T13:21:46.067Z","updated_at":"2025-03-10T00:32:02.005Z","avatar_url":"https://github.com/ije.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publish\n\nCreate git tag(version) and push to remote without any hassle.\n\n### Installation\n\n```bash\ndeno install --allow-read --allow-write --allow-run -f -n publish https://deno.land/x/publish@v1.16.1/cli.ts\n```\n\nor use [land](https://deno.land/x/land) without installation:\n\n```\nland publish\n```\n\n### Usage\n\n```bash\n$ cd $YOUR_PROJECT_DIR\n$ publish\n\u003e 1.0.1\n  1.1.0\n  2.0.0\n  1.0.0-alpha.1\n  1.0.0-beta.1\n  1.0.0-rc.1\n▏\n```\n\n**Publish** will create a `version.ts` file in your project root directory if it doesn't exist.\n\n```ts\nexport const VERSION = '1.0.0'\n```\n\n### Hook Functions\n\nYou can add hook functions in the `version.ts` to do some tasks before or after publish.\n\n```ts\n/** `prepublish` will be invoked before publish, return `false` to prevent the publish. */\nexport function prepublish(version: string) {\n  console.log('on prepublish', version)\n}\n\n/** `postpublish` will be invoked after published. */\nexport function postpublish(version: string) {\n  console.log('on postpublish', version)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fije%2Fpublish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fije%2Fpublish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fije%2Fpublish/lists"}