{"id":15762683,"url":"https://github.com/ramonpaolo/bump-version","last_synced_at":"2025-07-05T02:35:40.295Z","repository":{"id":85051016,"uuid":"606600402","full_name":"ramonpaolo/bump-version","owner":"ramonpaolo","description":"Github Action to get the version on the tag and parser it to `version` on package.json","archived":false,"fork":false,"pushed_at":"2024-07-07T14:53:08.000Z","size":863,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T05:48:46.218Z","etag":null,"topics":["actions","github-actions","good-first-issue","javascript","nodejs","opensource"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/bump-version-package-json","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/ramonpaolo.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":"2023-02-26T01:02:03.000Z","updated_at":"2025-01-09T19:59:54.000Z","dependencies_parsed_at":"2024-10-25T10:19:01.886Z","dependency_job_id":"ea7fdc81-fa97-4595-87c1-5655d5b8ff93","html_url":"https://github.com/ramonpaolo/bump-version","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":"0.41666666666666663","last_synced_commit":"b5f7d48f6d207e9786e9bb73fffe2195954d3d97"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/ramonpaolo/bump-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramonpaolo%2Fbump-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramonpaolo%2Fbump-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramonpaolo%2Fbump-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramonpaolo%2Fbump-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramonpaolo","download_url":"https://codeload.github.com/ramonpaolo/bump-version/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramonpaolo%2Fbump-version/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671838,"owners_count":23494047,"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":["actions","github-actions","good-first-issue","javascript","nodejs","opensource"],"created_at":"2024-10-04T11:21:45.227Z","updated_at":"2025-07-05T02:35:40.273Z","avatar_url":"https://github.com/ramonpaolo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bump Version\n\nThis GitHub Actions, get the value of tag, and pass to the application, replacing the static version in `package.json`, automatically, without create a new commit and manually change the version.\n\nThis action, **works only** with push event of type **tags**\n\nExample:\n\n```yml\non:\n  push:\n    tags:\n      - 'v[0-9]+.[0-9]+.[0-9]+'\n```\n\nIf you use this action with a worflow that run without this trigger, this step will break.\n\n## Supported Languages\n\nAt the moment, just support `package.json` that need exist in root folder\n\n## Examples\n\n```yml\nname: Deploy Package to NPM\n\non:\n  push:\n    tags:\n      - 'v[0-9]+.[0-9]+.[0-9]+'\n\njobs:\n  publish_npm:\n    name: Publishing to NPM\n\n    runs-on: ubuntu-latest\n\n    permissions:\n      actions: write\n      contents: write\n\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Setup NodeJs\n        uses: actions/setup-node@v3\n        with:\n          node-version: x.y # Version that you want use here\n          registry-url: https://registry.npmjs.org/\n\n      - name: Install Packages\n        run: yarn\n\n      - name: Bump Version of package.json\n        uses: ramonpaolo/bump-version@v2.3.1\n        with:\n          tag: ${{ github.ref_name }} # Accessing the context and get the reference_name, that in this case, is the tag that you created(ex: v1.0.0)\n          commit: true\n          branch_to_push: 'main'\n\n      - name: Publish package to NPM\n        run: npm publish\n        env:\n          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token necessary to deploy packages on pipelines CI/CD\n```\n\n## Input parameters\n\n| Name           | Description                  | Required | Default          |\n| :------------- | :--------------------------- | :------- | :--------------- |\n| tag            | The tag created(v.\\*.\\*.\\*)  | `true`   | \"v1.0.0\"         |\n| commit         | Commit the bump              | `false`  | `false`          |\n| branch_to_push | Which branch to push         | `false`  | \"main\"           |\n| path           | The path of the package.json | `false`  | \"./package.json\" |\n\n## Output parameters\n\n| Name       | Description                   |\n| :--------- | :---------------------------- |\n| parsed-tag | v1.0.0(input) = 1.0.0(output) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framonpaolo%2Fbump-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framonpaolo%2Fbump-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framonpaolo%2Fbump-version/lists"}