{"id":15690902,"url":"https://github.com/azu/npm-github-package-example","last_synced_at":"2025-05-07T23:20:57.646Z","repository":{"id":61962899,"uuid":"230185177","full_name":"azu/npm-github-package-example","owner":"azu","description":"npm registry to GitHub Package Registry example.","archived":false,"fork":false,"pushed_at":"2022-12-07T15:09:04.000Z","size":247,"stargazers_count":9,"open_issues_count":2,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T04:34:03.652Z","etag":null,"topics":["action","ci","example","github","npm","workflow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/azu.png","metadata":{"funding":{"github":"azu"},"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}},"created_at":"2019-12-26T03:02:13.000Z","updated_at":"2025-01-05T15:01:16.000Z","dependencies_parsed_at":"2023-01-24T18:01:21.421Z","dependency_job_id":null,"html_url":"https://github.com/azu/npm-github-package-example","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnpm-github-package-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnpm-github-package-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnpm-github-package-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnpm-github-package-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azu","download_url":"https://codeload.github.com/azu/npm-github-package-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968854,"owners_count":21833368,"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":["action","ci","example","github","npm","workflow"],"created_at":"2024-10-03T18:17:09.261Z","updated_at":"2025-05-07T23:20:57.629Z","avatar_url":"https://github.com/azu.png","language":"TypeScript","readme":"# npm-github-package-example[test]\n\nnpm registry to GitHub Package Registry example.\n\nThis repository test for GitHub Workflow.\n\n## Release Workflow\n\n1. [Manual] Update Version: `npm version {patch,minor,major}`\n2. [Manual] Push: `git push`\n3. [CI] Publish to npm and Push a tag to GitHub  \n\nThis Release flow is defined in [.github/workflows/publish.yml](./.github/workflows/publish.yml)\n\n```yaml\nname: publish\nenv:\n  CI: true\non:\n  push:\n    branches:\n      - master\n    tags:\n      - \"!*\"\njobs:\n  release:\n    name: Setup\n    runs-on: ubuntu-latest\n    steps:\n      - name: checkout\n        uses: actions/checkout@v3\n      - name: setup Node\n        uses: actions/setup-node@v3\n        with:\n          node-version: 16\n          registry-url: 'https://npm.pkg.github.com'\n      - name: install\n        run: npm install\n      - name: test\n        run: npm test\n      # Publish to npm if this version is not published\n      - name: Publish\n        run: |\n          npx can-npm-publish --yes --verbose \u0026\u0026 npm publish || echo \"Does not publish\"\n        env:\n          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n      # Push tag to GitHub if the version's tag is not tagged\n      - name: package-version-to-git-tag\n        uses: pkgdeps/git-tag-action@v2\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          github_repo: ${{ github.repository }}\n          version: ${{ env.PACKAGE_VERSION }}\n          git_commit_sha: ${{ github.sha }}\n          git_tag_prefix: \"v\"\n```\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n    npm install @azu/npm-github-package-example\n\n## Usage\n\n```js\nimport { hello } from \"@azu/npm-github-package-example\"\nhello(\"john\"); // =\u003e \"Hello, john\"\n```\n\n## Changelog\n\nSee [Releases page](https://github.com/azu/npm-github-package-example/releases).\n\n## Running tests\n\nInstall devDependencies and Run `npm test`:\n\n    npm test\n\n## Contributing\n\nPull requests and stars are always welcome.\n\nFor bugs and feature requests, [please create an issue](https://github.com/azu/npm-github-package-example/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n- [github/azu](https://github.com/azu)\n- [twitter/azu_re](https://twitter.com/azu_re)\n\n## License\n\nMIT © azu\n","funding_links":["https://github.com/sponsors/azu"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazu%2Fnpm-github-package-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazu%2Fnpm-github-package-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazu%2Fnpm-github-package-example/lists"}