{"id":14986001,"url":"https://github.com/saionaro/extract-package-version","last_synced_at":"2025-04-11T20:31:45.576Z","repository":{"id":38427084,"uuid":"245167751","full_name":"saionaro/extract-package-version","owner":"saionaro","description":"Allows you to get the npm version of the package in your Github Actions workflow","archived":false,"fork":false,"pushed_at":"2024-06-16T10:53:43.000Z","size":758,"stargazers_count":11,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T05:01:41.985Z","etag":null,"topics":["actions","ci","github-actions","utility"],"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/saionaro.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":"2020-03-05T13:16:26.000Z","updated_at":"2024-07-26T20:29:13.000Z","dependencies_parsed_at":"2024-06-18T22:49:58.380Z","dependency_job_id":"c79fa92a-4de4-48e6-abe6-191f58e794ce","html_url":"https://github.com/saionaro/extract-package-version","commit_stats":{"total_commits":37,"total_committers":6,"mean_commits":6.166666666666667,"dds":0.2432432432432432,"last_synced_commit":"35ced6bfe3b1491af23de4db27c601697e6d8d17"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saionaro%2Fextract-package-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saionaro%2Fextract-package-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saionaro%2Fextract-package-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saionaro%2Fextract-package-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saionaro","download_url":"https://codeload.github.com/saionaro/extract-package-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248476323,"owners_count":21110256,"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","ci","github-actions","utility"],"created_at":"2024-09-24T14:12:06.904Z","updated_at":"2025-04-11T20:31:40.563Z","avatar_url":"https://github.com/saionaro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extract-package-version\n\nAllows you to get the npm version of the package in your Github Actions workflow\n\n## Usage\n\n### Inputs\n\n- `path`: The directory where package.json can be found (defaults to root of repo)\n\n### Outputs\n\n- `version`: The version of current NPM package\n\n### Example workflow - get NPM version\n\n```yaml\non: push\n\nname: Create Build\n\njobs:\n  build:\n    name: Create Build\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - uses: saionaro/extract-package-version@v1.3.0\n        id: package_ver\n      # from now you can access the version\n      - run: echo ${{ steps.package_ver.outputs.version }}\n```\n\n### Example workflow - get NPM version of subdirectory (useful in monorepos)\n\n```yaml\non: push\n\nname: Create Build\n\njobs:\n  build:\n    name: Create Build\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - uses: saionaro/extract-package-version@v1.3.0\n        id: package_ver\n        with:\n          path: mysubdir\n      # from now you can access the version\n      - run: echo ${{ steps.package_ver.outputs.version }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaionaro%2Fextract-package-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaionaro%2Fextract-package-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaionaro%2Fextract-package-version/lists"}