{"id":15474483,"url":"https://github.com/gr2m/await-npm-package-version-action","last_synced_at":"2025-08-23T22:06:52.546Z","repository":{"id":37081069,"uuid":"318427821","full_name":"gr2m/await-npm-package-version-action","owner":"gr2m","description":"GitHub Action to wait for an npm package version to become available","archived":false,"fork":false,"pushed_at":"2025-04-21T16:19:52.000Z","size":3257,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T14:06:40.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"gr2m"}},"created_at":"2020-12-04T06:42:21.000Z","updated_at":"2025-04-21T16:19:54.000Z","dependencies_parsed_at":"2023-10-11T21:25:13.602Z","dependency_job_id":"c25ee1f7-a985-4c38-abdc-c1c9b14775ba","html_url":"https://github.com/gr2m/await-npm-package-version-action","commit_stats":{"total_commits":235,"total_committers":5,"mean_commits":47.0,"dds":"0.22127659574468084","last_synced_commit":"e33a313e961c132ef7c751b1e4f964836fdd373b"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fawait-npm-package-version-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fawait-npm-package-version-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fawait-npm-package-version-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fawait-npm-package-version-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/await-npm-package-version-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255709,"owners_count":21400410,"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-10-02T03:02:26.301Z","updated_at":"2025-04-22T14:07:02.938Z","avatar_url":"https://github.com/gr2m.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gr2m"],"categories":[],"sub_categories":[],"readme":"# await-npm-package-version-action\n\n\u003e GitHub Action to wait for an npm package version to become available\n\n[![Build Status](https://github.com/gr2m/await-npm-package-version-action/workflows/Test/badge.svg)](https://github.com/gr2m/await-npm-package-version-action/actions)\n\nWhen a new version is published to the npm registry using `npm publish`, it may not be immediately accessible in the npm registry. When installing the latest version of the same package right after the publish, it's likely that the previously published version will be returned. This action helps to halt the current workflow until the new version is accessible on https://registry.npmjs.org/.\n\n## Usage\n\nNotify users only when a release was published. The [repository dispatch event type](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#create-a-repository-dispatch-event) is set to `[current repositories full name] release` (e.g. `gr2m/release-notifire action`)\n\n```yml\nname: Release Notification\non:\n  release:\n    types:\n      - published\n\njobs:\n  notify:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: gr2m/await-npm-package-version-action@v1\n      - with:\n          package: example\n          version: ${{ github.event.release.tag_name }} # v1.2.3 is automatically parsed as \"1.2.3\"\n          timeout: 300 # time in seconds, defaults to 5 minutes\n          registry: https://npm.pkg.github.com # defaults to https://registry.npmjs.org\n      # it is now save to assume that `npm install example@latest` will return the new version\n```\n\n## How it works\n\nThe action continuously sends a request to `https://registry.npmjs.org/[package]` (or another `registry` if specified as parameter) and checks if the JSON response's `versions` object has a key for the configured version.\n\nIf the looked for version is not available after 300 seconds (configurable with `timeout`), the action ends with an error.\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fawait-npm-package-version-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Fawait-npm-package-version-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fawait-npm-package-version-action/lists"}