{"id":21320439,"url":"https://github.com/eclass/semantic-release-now","last_synced_at":"2025-07-20T04:35:41.999Z","repository":{"id":34304190,"uuid":"175697443","full_name":"eclass/semantic-release-now","owner":"eclass","description":"semantic-release plugin to publish a static site with now.sh","archived":false,"fork":false,"pushed_at":"2024-11-19T11:08:54.000Z","size":1184,"stargazers_count":1,"open_issues_count":47,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-19T12:36:45.083Z","etag":null,"topics":["eclass","now-sh","semantic-release","semantic-release-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/eclass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-03-14T20:50:45.000Z","updated_at":"2022-03-26T14:48:40.000Z","dependencies_parsed_at":"2023-02-18T15:15:42.609Z","dependency_job_id":"a4625fd0-1271-4b5f-9485-377a128341fe","html_url":"https://github.com/eclass/semantic-release-now","commit_stats":{"total_commits":519,"total_committers":4,"mean_commits":129.75,"dds":"0.034682080924855474","last_synced_commit":"bdbbfc6b30c9bc03306edfca089639938d38b08d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclass","download_url":"https://codeload.github.com/eclass/semantic-release-now/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225355913,"owners_count":17461603,"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":["eclass","now-sh","semantic-release","semantic-release-plugin"],"created_at":"2024-11-21T19:47:50.486Z","updated_at":"2024-11-21T19:47:51.523Z","avatar_url":"https://github.com/eclass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eclass/semantic-release-now\n\n[![npm](https://img.shields.io/npm/v/@eclass/semantic-release-now.svg)](https://www.npmjs.com/package/@eclass/semantic-release-now)\n[![build](https://img.shields.io/travis/eclass/semantic-release-now.svg)](https://travis-ci.org/eclass/semantic-release-now)\n[![downloads](https://img.shields.io/npm/dt/@eclass/semantic-release-now.svg)](https://www.npmjs.com/package/@eclass/semantic-release-now)\n[![dependencies](https://img.shields.io/david/eclass/semantic-release-now.svg)](https://david-dm.org/eclass/semantic-release-now)\n[![devDependency Status](https://img.shields.io/david/dev/eclass/semantic-release-now.svg)](https://david-dm.org/eclass/semantic-release-now#info=devDependencies)\n[![Coverage Status](https://coveralls.io/repos/github/eclass/semantic-release-now/badge.svg?branch=master)](https://coveralls.io/github/eclass/semantic-release-now?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/8be6086c58a332d1aee2/maintainability)](https://codeclimate.com/github/eclass/semantic-release-now/maintainability)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\u003e [semantic-release](https://github.com/semantic-release/semantic-release) plugin to deploy app with [now.sh](https://now.sh)\n\n| Step               | Description                                                  |\n|--------------------|--------------------------------------------------------------|\n| `verifyConditions` | Verify the presence of the `NOW_TOKEN` environment variable. |\n| `publish`          | Upload assets to now.sh.                                     |\n\n## Install\n\n```bash\nnpm i -D @eclass/semantic-release-now\n```\n\n## Usage\n\nThe plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/configuration.md#configuration):\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/changelog\",\n    \"@semantic-release/npm\",\n    \"@semantic-release/git\",\n    \"@semantic-release/gitlab\",\n    \"@eclass/semantic-release-now\"\n  ]\n}\n```\n\n## Configuration\n\n### Now authentication\n\nThe now authentication configuration is **required** and can be set via [environment variables](#environment-variables).\n\n### Environment variables\n\n| Variable    | Description                                                                             |\n| ----------- | --------------------------------------------------------------------------------------- |\n| `NOW_TOKEN` | Now token created via [now token](https://zeit.co/account/tokens) |\n\n### Now CLI\n\nIs **required** install [now cli](https://www.npmjs.com/package/now) in CI.\n\n### Examples\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/changelog\",\n    \"@semantic-release/npm\",\n    \"@semantic-release/git\",\n    \"@semantic-release/gitlab\",\n    \"@eclass/semantic-release-now\"\n  ]\n}\n```\n\n```json\n{\n  \"version\": 2,\n  \"name\": \"my-awesome-project\",\n  \"builds\": [\n    {\n      \"src\": \"build/**/*\",\n      \"use\": \"@now/static\"\n    }\n  ],\n  \"routes\": [\n    {\n      \"src\": \"/(.*)\",\n      \"headers\": {\n        \"cache-control\": \"s-maxage=0\"\n      },\n      \"dest\": \"build/index.html\"\n    }\n  ],\n  \"alias\": [\"my-awesome-project.now.sh\"]\n}\n```\n\n```yml\n# .gitlab-ci.yml\nrelease:\n  image: node:11-alpine\n  stage: release\n  before_script:\n    - npm i -g --unsafe-perm now\n  script:\n    - npx semantic-release\n  only:\n    - master\n```\n\n```yml\n# .travis.yml\nlanguage: node_js\ncache:\n  directories:\n    - ~/.npm\nnode_js:\n  - \"11\"\nstages:\n  - test\n  - name: deploy\n    if: branch = master\njobs:\n  include:\n    - stage: test\n      script: npm t\n    - stage: deploy\n      before_script:\n        - npm i -g --unsafe-perm now\n      script: npx semantic-release\n\n```\n\n## License\n\n[MIT](https://tldrlegal.com/license/mit-license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fsemantic-release-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclass%2Fsemantic-release-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fsemantic-release-now/lists"}