{"id":21320448,"url":"https://github.com/eclass/semantic-release-surge","last_synced_at":"2025-09-05T16:36:06.662Z","repository":{"id":34304061,"uuid":"175495461","full_name":"eclass/semantic-release-surge","owner":"eclass","description":"semantic-release plugin to publish a static site with surge.sh","archived":false,"fork":false,"pushed_at":"2025-09-04T10:57:10.000Z","size":1579,"stargazers_count":1,"open_issues_count":41,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-04T12:35:15.584Z","etag":null,"topics":["eclass","semantic-release","semantic-release-plugin","surge-sh"],"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-13T20:39:24.000Z","updated_at":"2025-09-04T10:52:14.000Z","dependencies_parsed_at":"2023-09-28T11:47:57.590Z","dependency_job_id":"195bcbeb-b2b1-45c9-b427-16c6ca735768","html_url":"https://github.com/eclass/semantic-release-surge","commit_stats":{"total_commits":520,"total_committers":4,"mean_commits":130.0,"dds":0.0346153846153846,"last_synced_commit":"c768f2f76ff7ab166091133f31bf41b53dc1da53"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/eclass/semantic-release-surge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-surge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-surge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-surge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-surge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclass","download_url":"https://codeload.github.com/eclass/semantic-release-surge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fsemantic-release-surge/sbom","scorecard":{"id":365285,"data":{"date":"2025-08-11","repo":{"name":"github.com/eclass/semantic-release-surge","commit":"4f00611ae1443db9cd29a1a8b50eb648ce8afe7c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/eclass/semantic-release-surge/node.js.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/node.js.yml:38"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 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"}},{"name":"Vulnerabilities","score":0,"reason":"34 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:42:58.243Z","repository_id":34304061,"created_at":"2025-08-18T11:42:58.244Z","updated_at":"2025-08-18T11:42:58.244Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273703809,"owners_count":25153029,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":["eclass","semantic-release","semantic-release-plugin","surge-sh"],"created_at":"2024-11-21T19:47:53.390Z","updated_at":"2025-09-05T16:36:06.615Z","avatar_url":"https://github.com/eclass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eclass/semantic-release-surge\n\n[![npm](https://img.shields.io/npm/v/@eclass/semantic-release-surge.svg)](https://www.npmjs.com/package/@eclass/semantic-release-surge)\n[![build](https://img.shields.io/travis/eclass/semantic-release-surge.svg)](https://travis-ci.org/eclass/semantic-release-surge)\n[![downloads](https://img.shields.io/npm/dt/@eclass/semantic-release-surge.svg)](https://www.npmjs.com/package/@eclass/semantic-release-surge)\n[![dependencies](https://img.shields.io/david/eclass/semantic-release-surge.svg)](https://david-dm.org/eclass/semantic-release-surge)\n[![devDependency Status](https://img.shields.io/david/dev/eclass/semantic-release-surge.svg)](https://david-dm.org/eclass/semantic-release-surge#info=devDependencies)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/38a9a51f770ddafa4182/test_coverage)](https://codeclimate.com/github/eclass/semantic-release-surge/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/38a9a51f770ddafa4182/maintainability)](https://codeclimate.com/github/eclass/semantic-release-surge/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 publish a static site with [surge.sh](https://surge.sh)\n\n| Step               | Description        |\n|--------------------|--------------------|\n| `verifyConditions` | Verify the presence of the `SURGE_TOKEN` environment variable and `SURGE_ALIAS` environment variable or `alias` option. |\n| `prepare`          | Build assets with a npm script. |\n| `publish`          | Upload assets to surge.sh. |\n\n## Install\n\n```bash\nnpm i -D @eclass/semantic-release-surge\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-surge\"\n  ]\n}\n```\n\n## Configuration\n\n### Surge authentication\n\nThe surge authentication configuration is **required** and can be set via [environment variables](#environment-variables).\n\n### Environment variables\n\n| Variable      | Description                                                                             |\n| ------------- | --------------------------------------------------------------------------------------- |\n| `SURGE_TOKEN` | Surge token created via [surge token](https://surge.sh/help/integrating-with-travis-ci) |\n| `SURGE_ALIAS` | Optional set surge alias. Example `my-awesome-project.surge.sh`                         |\n| `SURGE_CNAME` | Optional set surge custom CNAME. Example `my-awesome-project.io`                        |\n\n### Options\n\n| Options           | Description                              | Default |\n|-------------------|------------------------------------------|---------|\n| `alias`           | Set de custom alias to surge.sh project. | null    |\n| `buildScriptName` | npm script to build assets.              | `build` |\n| `build`           | Indicate if is requerid build assets.    | `false` |\n| `asstes`          | Indicate the assets directory.           | `dist` |\n\n### Examples\n\nThe `build` and `asstes` option can be used to skip the build assets:\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/changelog\",\n    \"@semantic-release/npm\",\n    \"@semantic-release/git\",\n    \"@semantic-release/gitlab\",\n    [\"@semantic-release/exec\", {\n      \"publishCmd\": \"npm run build\"\n    }],\n    [\"@eclass/semantic-release-surge\", {\n      \"alias\": \"my-awesome-project.surge.sh\",\n      \"assets\": \"build\",\n      \"build\": false,\n    }]\n  ]\n}\n```\n\nIs posible specificate a custom npm script build and a custom CNAME:\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-surge\", {\n      \"alias\": \"my-awesome-project.surge.sh\",\n      \"cname\": \"my-awesome-project.io\",\n      \"buildScriptName\": \"build:client\"\n    }]\n  ]\n}\n```\n```json\n{\n  \"scripts\": {\n    \"build:client\": \"react-scripts build\"\n  }\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-surge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclass%2Fsemantic-release-surge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fsemantic-release-surge/lists"}