{"id":14384947,"url":"https://github.com/bahmutov/now-pipeline","last_synced_at":"2026-01-12T02:25:50.006Z","repository":{"id":66012494,"uuid":"67246889","full_name":"bahmutov/now-pipeline","owner":"bahmutov","description":"Simple CI pipeline with goal to deploy new version at Zeit Now cloud if tests pass","archived":false,"fork":false,"pushed_at":"2019-03-03T14:39:27.000Z","size":55,"stargazers_count":140,"open_issues_count":6,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-28T23:35:08.886Z","etag":null,"topics":["deploy","now","zeit"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bahmutov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2016-09-02T18:46:13.000Z","updated_at":"2025-09-01T22:47:17.000Z","dependencies_parsed_at":"2023-05-23T00:00:21.047Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/now-pipeline","commit_stats":{"total_commits":87,"total_committers":3,"mean_commits":29.0,"dds":0.1954022988505747,"last_synced_commit":"f0adf3e34e5abc8d37e221192922b93e0d65ab1e"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/bahmutov/now-pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fnow-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fnow-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fnow-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fnow-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/now-pipeline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fnow-pipeline/sbom","scorecard":{"id":223489,"data":{"date":"2025-08-11","repo":{"name":"github.com/bahmutov/now-pipeline","commit":"f0adf3e34e5abc8d37e221192922b93e0d65ab1e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: next-update-travis.sh:22","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T03:08:42.544Z","repository_id":66012494,"created_at":"2025-08-17T03:08:42.544Z","updated_at":"2025-08-17T03:08:42.544Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deploy","now","zeit"],"created_at":"2024-08-28T18:01:48.368Z","updated_at":"2026-01-12T02:25:49.975Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# now-pipeline\n\n\u003e Single CI command to deploy new code to Zeit Now\n\u003e Includes e2e tests and the alias switch\n\n[![NPM][npm-icon] ][npm-url]\n\n[![Build status][ci-image] ][ci-url]\n[![semantic-release][semantic-image] ][semantic-url]\n[![js-standard-style][standard-image]][standard-url]\n[![first-timers-only](http://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/bahmutov/now-pipeline/labels/first-timers-only)\n[![next-update-travis badge][nut-badge]][nut-readme]\n\n## First time contributors\n\nThis repo is [first time OSS contributor friendly](http://www.firsttimersonly.com/).\nSee [these issues](https://github.com/bahmutov/now-pipeline/labels/first-timers-only)\nto contribute in meaningful way.\n\n## What and why\n\nI am [super excited](https://glebbahmutov.com/blog/think-inside-the-box/)\nabout [Zeit Now](https://zeit.co/now) tool; this is the \"missing CI tool\"\nfor it. A single command `now-pipeline`\n\n- deploys new version\n- tests it\n- switches alias to the new deployment\n- takes down the old deployment\n\nShould be enough to automatically update the server or service running in\nthe cloud without breaking anything.\n\n## Install and use\n\n```sh\nnpm i -g now-pipeline\n```\n\nSet `NOW_TOKEN` CI environment variable with a token that you can get from\n[Zeit account page](https://zeit.co/account#api-tokens)\n\nAdd CI command to `now-pipeline`. By default it will execute `npm test`\nand will pass the deployed url as `NOW_URL` environment variable. You can\ncustomize everything.\n\n## Example\n\nSimple Travis commands\n\n```yml\nscript:\n  # after unit tests\n  - npm i -g now-pipeline\n  - now-pipeline\n```\n\nPrune existing deploys (if they do not have an alias) and show the deploy.\n\n```yml\nscript:\n  - npm i -g now-pipeline\n  - now-pipeline-prune\n  - now-pipeline\n  - now-pipeline-list\n```\n\nSet [domain alias](https://zeit.co/world) if there is no existing one\n\n```yml\nscript:\n  - npm i -g now-pipeline\n  - now-pipeline --alias foo.domain.com\n```\n\nPass in path to be used as deploy directory\n\n```yml\nscript:\n  - npm i -g now-pipeline\n  - now-pipeline --dir your/directory\n```\n\nPass test command and name of the environment variable for deployed url\n\n```yml\nscript:\n  - npm i -g now-pipeline\n  - now-pipeline --as HOST --test \"npm run e2e\"\n```\n\n## Example projects\n\n* [todomvc-express](https://github.com/bahmutov/todomvc-express/blob/master/.travis.yml)\n* [express-sessions-tutorial](https://github.com/bahmutov/express-sessions-tutorial/blob/master/.travis.yml)\n* [test-semantic-deploy-with-now](https://github.com/bahmutov/test-semantic-deploy-with-now)\n\n## Additional bin commands\n\n* `now-pipeline-list` - see the current deploys for the current project\n* `now-pipeline-prune` - remove all non-aliased deploys for the current project\n\nYou can pass custom test command to the pipeline to be used after deploying\nfresh install using `--test \"command\"` argument. The command will get `NOW_URL`\nenvironment variable with new install. For example\n\n```sh\nnpm i -g now-pipeline\nnow-pipeline --test \"npm run prod-test\"\n```\n\nwhere the `package.json` has\n\n```json\n{\n  \"scripts\": {\n    \"prod-test\": \"e2e-test $NOW_URL\"\n  }\n}\n```\n\n## Debugging\n\nYou can see verbose log messages by running this tool with environment variable `DEBUG=now-pipeline`\n\n## Details\n\n* `now-pipeline` uses [Zeit API](https://zeit.co/api) via [now-client](https://github.com/zeit/now-client).\n* You can see the list of recent actions at [Zeit dashboard](https://zeit.co/dashboard).\n* It discovers files to send using [pkgd](https://github.com/inikulin/pkgd),\n  you can see the files by using the following command\n  (read [Smaller published NPM modules](https://glebbahmutov.com/blog/smaller-published-NPM-modules/) for more details)\n```sh\nt=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\"\n```\n* file `.npmignore` is considered an optional file\n\n## Related\n\n* [next-update](https://github.com/bahmutov/next-update) is a similar\n  \"if tests pass, upgrade\" tool for your NPM dependencies.\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2016\n\n* [@bahmutov](https://twitter.com/bahmutov)\n* [glebbahmutov.com](http://glebbahmutov.com)\n* [blog](http://glebbahmutov.com/blog)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/now-pipeline/issues) on Github\n\n## MIT License\n\nCopyright (c) 2016 Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[npm-icon]: https://nodei.co/npm/now-pipeline.svg?downloads=true\n[npm-url]: https://npmjs.org/package/now-pipeline\n[ci-image]: https://travis-ci.org/bahmutov/now-pipeline.svg?branch=master\n[ci-url]: https://travis-ci.org/bahmutov/now-pipeline\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[standard-url]: http://standardjs.com/\n[nut-badge]: https://img.shields.io/badge/next--update--travis-ok-green.svg\n[nut-readme]: https://github.com/bahmutov/next-update-travis#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fnow-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fnow-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fnow-pipeline/lists"}