{"id":26730308,"url":"https://github.com/richeyphu/sync-package-version","last_synced_at":"2026-04-19T04:33:47.397Z","repository":{"id":283338357,"uuid":"951449959","full_name":"richeyphu/sync-package-version","owner":"richeyphu","description":"Automatically updates package.json version to match the latest GitHub release tag.","archived":false,"fork":false,"pushed_at":"2025-03-27T04:34:09.000Z","size":39,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T16:40:04.635Z","etag":null,"topics":["actions","ci","github-actions","nodejs","npm","release","release-automation","workflow"],"latest_commit_sha":null,"homepage":"","language":null,"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/richeyphu.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":"2025-03-19T17:40:14.000Z","updated_at":"2025-03-27T04:34:12.000Z","dependencies_parsed_at":"2025-03-19T18:47:09.203Z","dependency_job_id":null,"html_url":"https://github.com/richeyphu/sync-package-version","commit_stats":null,"previous_names":["richeyphu/sync-package-version"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/richeyphu/sync-package-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richeyphu%2Fsync-package-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richeyphu%2Fsync-package-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richeyphu%2Fsync-package-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richeyphu%2Fsync-package-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richeyphu","download_url":"https://codeload.github.com/richeyphu/sync-package-version/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richeyphu%2Fsync-package-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31995057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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","ci","github-actions","nodejs","npm","release","release-automation","workflow"],"created_at":"2025-03-27T23:19:16.361Z","updated_at":"2026-04-19T04:33:47.377Z","avatar_url":"https://github.com/richeyphu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔄 Sync Package Version\n\nAutomatically updates `package.json` to match the latest GitHub release tag.\n\n## 📌 Features\n\n✅ **Syncs `package.json` version** to match the latest **GitHub release tag**  \n✅ **No manual version bumps** – Just create a release, and this action updates `package.json` for you  \n✅ **Works with npm, pnpm, and yarn projects**  \n✅ **Lightweight \u0026 Fast** – Uses **Bash \u0026 jq**, no extra dependencies required\n\n## 🔧 Usage\n\n### 📝 Add to your workflow\n\nCreate a new workflow file (e.g., `.github/workflows/release.yml`) in your repository:\n\n```yaml\nname: 🚀 Release\n\non:\n  release:\n    types: [published]\n\njobs:\n  sync-version:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Sync package.json version 🔄\n        uses: richeyphu/sync-package-version@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### 🎯 What happens?\n\n1. Extracts the **release tag** (e.g., `v1.2.3`)\n2. Updates the `package.json` **version field**\n3. Commits \u0026 pushes the changes\n\n## 📥 Inputs\n\n| Name           | Description                              | Required | Default                    |\n| -------------- | ---------------------------------------- | -------- | -------------------------- |\n| `token`        | GitHub token with repo permissions       | ✅ Yes   | N/A                        |\n| `repository`   | GitHub repository (e.g., `owner/repo`)   | ❌ No    | `${{ github.repository }}` |\n| `branch`       | Branch to push changes to                | ❌ No    | `main`                     |\n| `skip-ci`      | Skip CI checks for the commit            | ❌ No    | `false`                    |\n| `pull-request` | Create a pull request instead of pushing | ❌ No    | `false`                    |\n\n## 📜 License\n\nLicensed under the [**MIT License**](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricheyphu%2Fsync-package-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricheyphu%2Fsync-package-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricheyphu%2Fsync-package-version/lists"}