{"id":15991455,"url":"https://github.com/sinedied/semantic-release-npm-github","last_synced_at":"2026-05-04T05:42:40.029Z","repository":{"id":55143868,"uuid":"327029590","full_name":"sinedied/semantic-release-npm-github","owner":"sinedied","description":"Shareable configuration automated package publication to NPM and GitHub using semantic-release","archived":false,"fork":false,"pushed_at":"2026-01-21T17:10:16.000Z","size":564,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T05:04:30.405Z","etag":null,"topics":["changelog","github","npm","package","publish","semantic-release","semantic-release-config"],"latest_commit_sha":null,"homepage":"","language":null,"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/sinedied.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":"2021-01-05T14:50:16.000Z","updated_at":"2026-01-21T17:10:19.000Z","dependencies_parsed_at":"2024-06-21T14:10:46.697Z","dependency_job_id":"6690a8c1-8f84-438d-943d-2eb1bafc5ae8","html_url":"https://github.com/sinedied/semantic-release-npm-github","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.42307692307692313","last_synced_commit":"25aa99fc7a360e8c3a3ea79cd453a6bd9af6bb55"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sinedied/semantic-release-npm-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fsemantic-release-npm-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fsemantic-release-npm-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fsemantic-release-npm-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fsemantic-release-npm-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinedied","download_url":"https://codeload.github.com/sinedied/semantic-release-npm-github/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fsemantic-release-npm-github/sbom","scorecard":{"id":826976,"data":{"date":"2025-08-11","repo":{"name":"github.com/sinedied/semantic-release-npm-github","commit":"25aa99fc7a360e8c3a3ea79cd453a6bd9af6bb55"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"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/29 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/sinedied/semantic-release-npm-github/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sinedied/semantic-release-npm-github/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/sinedied/semantic-release-npm-github/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sinedied/semantic-release-npm-github/release.yml/main?enable=pin","Info:   0 out of   4 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":"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":"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":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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 5.0.0 not signed: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/113073087","Warn: release artifact 4.0.0 not signed: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/94111195","Warn: release artifact 3.0.0 not signed: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/60349714","Warn: release artifact 2.0.0 not signed: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/50534978","Warn: release artifact 1.0.6 not signed: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/48877152","Warn: release artifact 5.0.0 does not have provenance: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/113073087","Warn: release artifact 4.0.0 does not have provenance: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/94111195","Warn: release artifact 3.0.0 does not have provenance: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/60349714","Warn: release artifact 2.0.0 does not have provenance: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/50534978","Warn: release artifact 1.0.6 does not have provenance: https://api.github.com/repos/sinedied/semantic-release-npm-github/releases/48877152"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["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-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-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"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-23T16:48:14.004Z","repository_id":55143868,"created_at":"2025-08-23T16:48:14.004Z","updated_at":"2025-08-23T16:48:14.004Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32596533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["changelog","github","npm","package","publish","semantic-release","semantic-release-config"],"created_at":"2024-10-08T06:01:12.635Z","updated_at":"2026-05-04T05:42:40.013Z","avatar_url":"https://github.com/sinedied.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# :robot: semantic-release-npm-github\n\n[![NPM version](https://img.shields.io/npm/v/semantic-release-npm-github.svg)](https://www.npmjs.com/package/semantic-release-npm-github)\n[![Build Status](https://github.com/sinedied/semantic-release-npm-github/workflows/release/badge.svg)](https://github.com/sinedied/semantic-release-npm-github/actions)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n\u003e Shareable configuration automated package publication to NPM and GitHub using [semantic-release](https://github.com/semantic-release/semantic-release), tailored for OSS projects.\n\n## Release workflow\n\n- [Analyzes](https://github.com/semantic-release/commit-analyzer) commits following the [conventional commits spec](https://www.conventionalcommits.org/)\n  * Follows the default [angular preset](https://github.com/semantic-release/commit-analyzer#options)\n  * Includes `chore`, `docs`, `refactor` and `style` changes in PATCH releases\n- Generates or updates [changelog](https://github.com/semantic-release/changelog)\n- Bumps the version in `package.json`\n- Publishes package to [NPM](https://npmjs.org)\n- Commits the changes made and creates a [git tag](https://github.com/semantic-release/git) with the release version\n- Creates a [GitHub release](https://github.com/semantic-release/github) with the package\n\n## Install\n\n1. Install `semantic-release`\n\n  ```sh\n  npm install --save-dev semantic-release\n  ```\n\n2. Install this package:\n\n  ```sh\n  npm install --save-dev semantic-release-npm-github\n  ```\n\n3. Add a semantic release config in your `package.json` file:\n\n  ```json\n  {\n    \"extends\": \"semantic-release-npm-github\",\n    \"branch\": \"main\"\n  }\n  ```\n\n## Usage\n\nOnce everything is installed, you can test your config with a dry run:\n\n```sh\nnpx semantic-release --dry-run\n```\n\nWhat you'll probably want to do next is configure a [GitHub workflow](https://docs.github.com/actions/quickstart) to run your tests and publish new versions automatically.\n\nHere's a example workflow configuration that runs your tests and publishes a new version for new commits on `main` branch:\n\n```yml\nname: release\non:\n  push:\n    branches:\n      - main\n\njobs:\n  test:\n    name: Run tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: '\u003e=14'\n      - run: |\n          npm ci\n          npm test\n        env:\n          CI: true\n\n  release:\n    name: Publish release\n    needs: test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: '\u003e=14'\n      - run: |\n          npm ci\n          npm build --if-present\n        env:\n          CI: true\n      - run: npx semantic-release\n        if: success()\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n\nIn addition, for this workflow to work correctly you have to generate an [NPM authentication token](https://docs.npmjs.com/cli/token) and set it to the [`NPM_TOKEN` secret](https://docs.github.com/actions/reference/encrypted-secrets) in your GitHub repository.\n\n### Note on GitHub protected branches\n\nIf you're releasing a [GitHub protected branch](https://docs.github.com/github/administering-a-repository/about-protected-branches) you need to change the git commiter to an owner/admin and allow repo admins to bypass the branch protection (make sure \"include administrators\" is **disabled** in the branch protection rules.)\n\nIf your repo is under an organisation, you can create a bot account and give it admin rights on the repo. If your repo is under a personal account, you have no choice to make the repo owner the commiter for the release.\n\nEither way, you have to create a [GitHub personal access token](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) for the commiter account and give it the \"repo\" access rights. Then set it to the [`GH_TOKEN` secret](https://docs.github.com/actions/reference/encrypted-secrets) in your GitHub repository.\n\nFinally, make these two changes to your workflow:\n\n```yml\n...\n    - uses: actions/checkout@v2\n      # Add this to commit with a different account than the one\n      # used for checkout\n      with:\n        persist-credentials: false\n...\n    - run: npx semantic-release\n      if: success()\n      env:\n        # Change the secret used here\n        GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}\n        NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n        # Add this to set the new commiter for the release\n        GIT_COMMITTER_NAME: admin-or-owner\n        GIT_COMMITTER_EMAIL: associated-email@address.com\n```\n\n\u003e Note: GitHub secrets not shared with forks and pull requests, so no one that doesn't have write access to your repo can use of them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinedied%2Fsemantic-release-npm-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinedied%2Fsemantic-release-npm-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinedied%2Fsemantic-release-npm-github/lists"}