{"id":31262716,"url":"https://github.com/flex-development/npm-url-action","last_synced_at":"2026-05-01T12:32:35.581Z","repository":{"id":315528766,"uuid":"1059857798","full_name":"flex-development/npm-url-action","owner":"flex-development","description":"Create a URL for the NPM registry","archived":false,"fork":false,"pushed_at":"2025-11-17T23:41:14.000Z","size":2264,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-13T19:55:36.900Z","etag":null,"topics":["actions","deploy","deployment","environment","npm","url"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/npm-url","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flex-development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["flex-development"]}},"created_at":"2025-09-19T03:49:03.000Z","updated_at":"2025-10-03T23:23:00.000Z","dependencies_parsed_at":"2025-09-19T06:40:03.633Z","dependency_job_id":"6eac58e4-cfec-416f-b965-3e561f6d7b90","html_url":"https://github.com/flex-development/npm-url-action","commit_stats":null,"previous_names":["flex-development/npm-url-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flex-development/npm-url-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fnpm-url-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fnpm-url-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fnpm-url-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fnpm-url-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flex-development","download_url":"https://codeload.github.com/flex-development/npm-url-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fnpm-url-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["actions","deploy","deployment","environment","npm","url"],"created_at":"2025-09-23T11:51:00.855Z","updated_at":"2026-05-01T12:32:35.561Z","avatar_url":"https://github.com/flex-development.png","language":"TypeScript","funding_links":["https://github.com/sponsors/flex-development"],"categories":[],"sub_categories":[],"readme":"# npm-url\n\n[![github release](https://img.shields.io/github/v/release/flex-development/npm-url-action.svg?include_prereleases\\\u0026sort=semver)](https://github.com/flex-development/npm-url-action/releases/latest)\n[![test](https://github.com/flex-development/npm-url-action/actions/workflows/test.yml/badge.svg)](https://github.com/flex-development/npm-url-action/actions/workflows/test.yml)\n[![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)\n[![license](https://img.shields.io/github/license/flex-development/npm-url-action.svg)](LICENSE.md)\n[![conventional commits](https://img.shields.io/badge/-conventional%20commits-fe5196?logo=conventional-commits\\\u0026logoColor=ffffff)](https://conventionalcommits.org)\n[![yarn](https://img.shields.io/badge/-yarn-2c8ebb?style=flat\\\u0026logo=yarn\\\u0026logoColor=ffffff)](https://yarnpkg.com)\n\nCreate a URL for the NPM registry\n\n## Contents\n\n- [What is this?](#what-is-this)\n- [Use](#use)\n- [Inputs](#inputs)\n  - [`pkg`](#pkg)\n  - [`scope`](#scope)\n  - [`version`](#version)\n- [Outputs](#outputs)\n  - [`url`](#url)\n- [Related](#related)\n- [Contribute](#contribute)\n\n## What is this?\n\nThis is a simple action for creating NPM registry URLs.\n\n## Use\n\n```yaml\n---\nname: publish\non:\n  release:\n    types:\n      - published\njobs:\n  preflight:\n    runs-on: ubuntu-latest\n    outputs:\n      environment: ${{ steps.environment.outputs.url }}\n      version: ${{ steps.version.outputs.manifest }}\n    steps:\n      - id: checkout\n        name: Checkout ${{ github.ref_name }}\n        uses: actions/checkout@v5.0.0\n        with:\n          persist-credentials: false\n          ref: ${{ github.ref }}\n      - id: version\n        name: Get package version\n        uses: flex-development/manver-action@1.0.1\n      - id: environment\n        name: Get environment url\n        uses: flex-development/npm-url-action@1.0.0\n        with:\n          scope: ${{ github.repository_owner }}\n          version: ${{ steps.version.outputs.manifest }}\n  npm:\n    needs: preflight\n    permissions:\n      contents: read\n      id-token: write\n      packages: write\n    runs-on: ubuntu-latest\n    environment:\n      name: npm\n      url: ${{ needs.preflight.outputs.environment }}\n    steps:\n      - id: npmrc\n        name: Setup .npmrc file\n        uses: actions/setup-node@v5.0.0\n        with:\n          always-auth: true\n          registry-url: https://registry.npmjs.org\n          scope: ${{ github.repository_owner }}\n      - id: dist-tag\n        name: Get dist tag\n        uses: flex-development/dist-tag-action@1.1.2\n        with:\n          target: ${{ needs.preflight.outputs.version }}\n      - id: publish\n        name: Publish package\n        env:\n          ARTIFACT: ${{ github.event.release.assets[0].browser_download_url }}\n          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n        run: npm publish --provenance ${{ steps.dist-tag.outputs.flag }} $ARTIFACT\n```\n\n## Inputs\n\n### `pkg`\n\n\u003e **default**: `${{ github.event.repository.name }}`\n\nThe name of the package (optional).\n\n### `scope`\n\nThe scope of the [package](#pkg) (optional).\n\n### `version`\n\nThe version of the [package](#pkg) to include in the URL (optional).\n\n## Outputs\n\n### `url`\n\nThe public registry URL.\n\n## Related\n\n- [`flex-development/gh-release-url-action`][gh-release-url-action] — create a url for a github release\n- [`flex-development/ghr-url-action`][ghr-url-action] — create a url for a github registry\n\n## Contribute\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\nThis project has a [code of conduct](./CODE_OF_CONDUCT.md). By interacting with this repository, organization, or\ncommunity you agree to abide by its terms.\n\n[gh-release-url-action]: https://github.com/flex-development/gh-release-url-action\n\n[ghr-url-action]: https://github.com/flex-development/ghr-url-action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Fnpm-url-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflex-development%2Fnpm-url-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Fnpm-url-action/lists"}