{"id":16542489,"url":"https://github.com/tada5hi/workspaces-publish","last_synced_at":"2026-02-19T23:36:14.166Z","repository":{"id":212842261,"uuid":"732450594","full_name":"tada5hi/workspaces-publish","owner":"tada5hi","description":"This library facilitates the publication of packages encompassing multiple workspaces as defined in a package.json file.","archived":false,"fork":false,"pushed_at":"2026-02-06T11:40:22.000Z","size":511,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T19:23:39.648Z","etag":null,"topics":["monorepo","monorepository","npm","npm-workspaces","publish","publishing","workspaces"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tada5hi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"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":{"github":["tada5hi"]}},"created_at":"2023-12-16T18:02:07.000Z","updated_at":"2026-02-06T11:37:25.000Z","dependencies_parsed_at":"2024-05-06T19:40:06.841Z","dependency_job_id":"25db2803-b981-4a56-b54d-247ddd2d4dc8","html_url":"https://github.com/tada5hi/workspaces-publish","commit_stats":null,"previous_names":["tada5hi/workspaces-publish"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/tada5hi/workspaces-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Fworkspaces-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Fworkspaces-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Fworkspaces-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Fworkspaces-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tada5hi","download_url":"https://codeload.github.com/tada5hi/workspaces-publish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Fworkspaces-publish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29636586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["monorepo","monorepository","npm","npm-workspaces","publish","publishing","workspaces"],"created_at":"2024-10-11T18:57:41.023Z","updated_at":"2026-02-19T23:36:14.145Z","avatar_url":"https://github.com/tada5hi.png","language":"TypeScript","funding_links":["https://github.com/sponsors/tada5hi"],"categories":[],"sub_categories":[],"readme":"# workspaces-publish 📦\n\n[![npm version](https://badge.fury.io/js/workspaces-publish.svg)](https://badge.fury.io/js/workspaces-publish)\n[![Master Workflow](https://github.com/Tada5hi/workspaces-publish/workflows/CI/badge.svg)](https://github.com/Tada5hi/workspaces-publish)\n[![Known Vulnerabilities](https://snyk.io/test/github/Tada5hi/workspaces-publish/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Tada5hi/workspaces-publish?targetFile=package.json)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n\nThis library facilitates the publication of packages encompassing multiple workspaces as defined in a package.json file.\nIt determines the unpublished packages by checking each package manifest of the registry,\nif one already exists.\n\nAt best, it should be used with a library that increments the version of the packages beforehand \n(e.g. [release-please](https://github.com/googleapis/release-please)).\n\nIt is based on the packages \n([libnpmpublish](https://www.npmjs.com/package/libnpmpublish), \n[libnpmpack](https://www.npmjs.com/package/libnpmpack))\nthat the npm cli uses to publish packages.\n\n**Table of Contents**\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Usage](#usage)\n- [CI](#ci)\n\n## Installation\n\n```bash\nnpm install workspaces-publish --save-dev\n```\n\n## Usage\n\n```bash\nnpx workspaces-publish \\\n  --token \u003ctoken\u003e \\\n  --registry \u003cregistry\u003e \\\n  --root \u003croot\u003e \\\n  --rootPackage \u003crootPackage\u003e\n```\n\n### token\n- Type: `String`\n- Default: `process.env.NODE_AUTH_TOKEN`\n- Description: Token for the registry.\n\n### registry\n- Type: `String`\n- Default: `https://registry.npmjs.org/`\n- Description: Registry url.\n\n### root\n- Type: `String`\n- Default: `process.cwd()`\n- Description: Directory where the root package is located.\n\n### rootPackage\n- Type: `Boolean`\n- Default: `true`\n- Description: Also consider the root package for publishing. The library still \n  checks whether a name- \u0026 version-property is set and whether the private property evaluates to false.\n\n\n## CI\n\n### GitHub Action\nThe library can also be used in combination with [release-please](https://github.com/googleapis/release-please),\nas release-please only increases the versions in the monorepo, but does not release the packages.\n\n```yaml\non:\n    push:\n        branches:\n            - main\n\npermissions:\n    contents: write\n    pull-requests: write\n\njobs:\n    release:\n        runs-on: ubuntu-latest\n        steps:\n            -   uses: google-github-actions/release-please-action@v4\n                id: release\n                with:\n                    token: ${{ secrets.GITHUB_TOKEN }}\n\n            -   name: Checkout\n                if: steps.release.outputs.releases_created == 'true'\n                uses: actions/checkout@v4\n\n            -   name: Install Node.JS\n                if: steps.release.outputs.releases_created == 'true'\n                uses: actions/setup-node@v4\n                with:\n                    node-version: 18\n            \n            -   name: Install dependencies\n                if: steps.release.outputs.releases_created == 'true'\n                run: npm ci\n\n            -   name: Publish\n                if: steps.release.outputs.releases_created == 'true'\n                run: npx workspaces-publish\n                env:\n                    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftada5hi%2Fworkspaces-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftada5hi%2Fworkspaces-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftada5hi%2Fworkspaces-publish/lists"}