{"id":48030904,"url":"https://github.com/e18e/setup-publish","last_synced_at":"2026-04-04T13:55:21.809Z","repository":{"id":315930060,"uuid":"1061298381","full_name":"e18e/setup-publish","owner":"e18e","description":"A tiny CLI to help setting up npm publish workflows.","archived":false,"fork":false,"pushed_at":"2026-03-15T16:50:21.000Z","size":222,"stargazers_count":20,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-16T05:14:45.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/e18e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"e18e"}},"created_at":"2025-09-21T16:32:29.000Z","updated_at":"2026-03-15T16:50:23.000Z","dependencies_parsed_at":"2026-03-02T00:09:43.102Z","dependency_job_id":null,"html_url":"https://github.com/e18e/setup-publish","commit_stats":null,"previous_names":["e18e/setup-publish"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/e18e/setup-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e18e%2Fsetup-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e18e%2Fsetup-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e18e%2Fsetup-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e18e%2Fsetup-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e18e","download_url":"https://codeload.github.com/e18e/setup-publish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e18e%2Fsetup-publish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-04-04T13:55:21.754Z","updated_at":"2026-04-04T13:55:21.805Z","avatar_url":"https://github.com/e18e.png","language":"TypeScript","funding_links":["https://opencollective.com/e18e"],"categories":["TypeScript"],"sub_categories":[],"readme":"# `@e18e/setup-publish`\n\n[![npm version](https://img.shields.io/npm/v/@e18e/setup-publish.svg)](https://www.npmjs.com/package/@e18e/setup-publish)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003e 🚀 A tiny CLI to assist with setting up GitHub workflows for publishing packages to npm.\n\n## 📦 Install\n\n```bash\nnpm install -g @e18e/setup-publish\n```\n\nOr you can use `npx`:\n\n```bash\nnpx @e18e/setup-publish\n```\n\n## 🚀 Usage\n\n```bash\n# If installed globally\nsetup-publish\n\n# Or using npx\nnpx @e18e/setup-publish\n```\n\n## 🛠️ Features\n\n- **Granular permissions** - Each workflow step has minimal required permissions\n- **SHA-pinned actions** - GitHub actions referenced by commit SHA for security\n- **Install scripts disabled** - Prevents malicious package install scripts from running\n- **Separated jobs** - Build and publish run as independent jobs for better isolation\n- **Secure publish** - Publish job only uploads pre-built artifacts, no external code execution\n\n## ⚙️ Options\n\nBy default, the CLI runs in **interactive mode**, prompting you for configuration options. You can also provide options directly via the command line with `--no-interactive` to skip the prompts entirely.\n\n| Option | Description | Default | Available Values |\n|--------|-------------|---------|------------------|\n| `--output \u003cpath\u003e` | Output path for the generated workflow file | `.github/workflows/publish.yml` | Any valid file path |\n| `--template \u003cname\u003e` | Template to use for workflow generation | `default` | \u003cul\u003e\u003cli\u003e`default` - Manual GitHub release management\u003c/li\u003e\u003cli\u003e`changelogithub` - Automated changelog with changelogithub\u003c/li\u003e\u003cli\u003e`changesets` - Automated releases with changesets\u003c/li\u003e\u003c/ul\u003e |\n| `--env \u003cenv\u003e` | GitHub environment for deployment protection | _none_ | Any environment name |\n| `--interactive` | Run CLI in interactive mode | `true` | boolean |\n\n## 📚 Examples\n\n### Interactive Mode (Default)\n\n```bash\nsetup-publish\n```\n\n### Non-Interactive Mode\n\n```bash\n# Generate workflow with changesets template\nsetup-publish --no-interactive --template changesets\n\n# Custom output path with GitHub environment\nsetup-publish --no-interactive --output .github/workflows/release.yml --env production\n\n# Use changelogithub template with custom environment\nsetup-publish --no-interactive --template changelogithub --env staging\n```\n\n## 📋 Templates\n\n### 🎯 **Default**\n\nManual GitHub release management - this is the most basic setup, allowing you to create releases manually via GitHub's interface.\n\n### 📝 **Changelogithub**\n\nAutomated changelog generation using [changelogithub](https://github.com/antfu/changelogithub) - ideal for projects following conventional commits.\n\n### 🔄 **Changesets**\n\nAutomated releases with [changesets](https://github.com/changesets/changesets) - great for monorepos and coordinated releases.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://e18e.dev/sponsor\"\u003e\n    \u003cimg src=\"https://e18e.dev/sponsors.svg\" alt=\"e18e community sponsors\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 📄 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe18e%2Fsetup-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe18e%2Fsetup-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe18e%2Fsetup-publish/lists"}