{"id":20449129,"url":"https://github.com/glanguage/npm_publisher","last_synced_at":"2026-04-09T18:03:51.613Z","repository":{"id":133842779,"uuid":"262091194","full_name":"GLanguage/npm_publisher","owner":"GLanguage","description":"A shell script to update package on npm and on GitHub automatically.","archived":false,"fork":false,"pushed_at":"2020-05-08T01:21:39.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T22:26:58.315Z","etag":null,"topics":["git","github","npm","shell"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/GLanguage.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-05-07T15:41:15.000Z","updated_at":"2020-05-08T01:21:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f34ec16d-3504-4b0b-afb9-c96ba9300906","html_url":"https://github.com/GLanguage/npm_publisher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLanguage%2Fnpm_publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLanguage%2Fnpm_publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLanguage%2Fnpm_publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLanguage%2Fnpm_publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GLanguage","download_url":"https://codeload.github.com/GLanguage/npm_publisher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241997530,"owners_count":20055118,"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":["git","github","npm","shell"],"created_at":"2024-11-15T10:38:57.715Z","updated_at":"2025-12-31T01:03:10.654Z","avatar_url":"https://github.com/GLanguage.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm_publisher\n\nA shell script to update package on npm and on GitHub automatically.\n\n## Usage\n\nCopy `/publish.sh` into your package directory.\n\nMake sure:\n\n- Your project is based on `git` (by `git init` or `git clone`)\n- You have a branch for your new package version (by `git branch \u003cbranchname\u003e`)\n- You are at the branch for the new version (by `git checkout \u003cbranchname\u003e`)\n- You have a `npm` account and you have logged in (by `npm login`)\n- Your package is not scoped (you can change the source code if you want)\n- You have a `package.json` under your package directory\n- You have a `\"version\"` property in `package.json`\n- You have a remote repo `origin` (by `git remote add origin \u003curl\u003e`)\n\nRun:\n\n```shell\n$ chmod +x publish.sh\n$ ./publish.sh\n```\n\nThe script will ask for:\n\n1. Your new version number\n2. Name of the branch for the new version\n3. Commit description\n\nThe script will do:\n\n1. Publish the new version of the package to `npm`\n2. Commit your new version branch and merge it to `master`\n3. Change your current branch to `master` and delete the previous branch\n4. Push the local `master` branch to the `master` branch in the remote repo `origin`\n\n**Notice:** If commit description is not given (nothing entered) , then the default description will be `v\u003cversion_number\u003e`. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglanguage%2Fnpm_publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglanguage%2Fnpm_publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglanguage%2Fnpm_publisher/lists"}