{"id":23099955,"url":"https://github.com/keep-network/npm-version-bump","last_synced_at":"2025-04-03T20:42:18.957Z","repository":{"id":48437595,"uuid":"336210640","full_name":"keep-network/npm-version-bump","owner":"keep-network","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-21T12:48:33.000Z","size":259,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"v2","last_synced_at":"2025-03-24T08:43:35.496Z","etag":null,"topics":[],"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/keep-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-02-05T08:31:32.000Z","updated_at":"2022-08-17T14:29:46.000Z","dependencies_parsed_at":"2024-10-14T13:01:02.726Z","dependency_job_id":null,"html_url":"https://github.com/keep-network/npm-version-bump","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"ab775eb34329172754544d5fd5cd37ff13be64ce"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fnpm-version-bump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fnpm-version-bump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fnpm-version-bump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fnpm-version-bump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keep-network","download_url":"https://codeload.github.com/keep-network/npm-version-bump/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078783,"owners_count":20879950,"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":[],"created_at":"2024-12-16T23:29:10.218Z","updated_at":"2025-04-03T20:42:18.934Z","avatar_url":"https://github.com/keep-network.png","language":"JavaScript","readme":"# NPM Package Version Bump Action\n\n[![main](https://github.com/keep-network/npm-version-bump/actions/workflows/main.yml/badge.svg?branch=v2)](https://github.com/keep-network/npm-version-bump/actions/workflows/main.yml)\n[![test](https://github.com/keep-network/npm-version-bump/actions/workflows/test.yml/badge.svg?branch=v2)](https://github.com/keep-network/npm-version-bump/actions/workflows/test.yml)\n\nThis is a GitHub Action that bumps version of a NPM Package.\n\nThe version is formatted according to the pattern described in the [RFC-18]:\n\n```\n\u003cbase-version\u003e-\u003cenvironment\u003e.\u003cbuild-number\u003e+\u003cbranch\u003e.\u003ccommit\u003e\n```\n\n[RFC-18]:https://github.com/keep-network/keep-core/blob/master/docs/rfc/rfc-18-release-management.adoc#221-build-taggingpublishing\n\n## Inputs\n\nThe action supports following input parameters:\n\n- `work-dir` (optional, default: `.`) - location of `package.json` file,\n\n- `is-prerelease` (optional, default: `true`) - defines if the version is a prerelease,\n  currently only `true` is supported,\n\n- `environment` (optional, default: `pre`) - prerelease id.\n\n- `branch` (optional) - branch reference at which version is built\n\n- `commit` (optional) - commit hash at which version is built\n\n### Branch conversion\n\nIt's expected that `branch` parameter will be populated with [GitHub context `ref`\nproperty](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context):\n\n\u003e The branch or tag ref that triggered the workflow run. For branches this in the format refs/heads/\u003cbranch_name\u003e, and for tags it is refs/tags/\u003ctag_name\u003e.\n\nTo handle this value correctly in the resulting version format the provided\nvalue is converted in the following way:\n\n- `refs/heads/` and `refs/tag/` prefixes are stripped out,\n\n- any `/` occurrence is replaced by `-`,\n\n- any `.` occurrence is replaced with `-`.\n\n## Usage\n\n\u003c!-- prettier-ignore-start --\u003e\n```yaml\n- uses: keep-network/npm-version-bump@v2\n  with:\n    work-dir: ./contracts       # optional, default: .\n    environment: \"ropsten\"      # optional, default: pre\n    branch: ${{ github.ref }}   # optional\n    commit: ${{ github.sha }}   # optional\n```\n\u003c!-- prettier-ignore-end --\u003e\n\n## Outputs\n\nThe action outputs `version` property with a value of the resolved package version.\n\nExample usage:\n\n```yaml\n- uses: keep-network/npm-version-bump@v2\n  id: bump-version\n- name: Print resolved version\n  run: echo \"Resolved new version ${{ steps.bump-version.outputs.version }}\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fnpm-version-bump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeep-network%2Fnpm-version-bump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fnpm-version-bump/lists"}