{"id":25862192,"url":"https://github.com/devopsmariocom/test-lerna-semantic-release","last_synced_at":"2025-03-01T23:49:14.727Z","repository":{"id":66824934,"uuid":"84926174","full_name":"devopsmariocom/test-lerna-semantic-release","owner":"devopsmariocom","description":"Testing repo to verify lerna-semantic-release functionality","archived":false,"fork":false,"pushed_at":"2017-03-17T02:23:25.000Z","size":87,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T00:07:20.200Z","etag":null,"topics":[],"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/devopsmariocom.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":"2017-03-14T08:48:28.000Z","updated_at":"2017-03-15T08:55:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0d01941-a836-4432-8bef-27b58fda06c0","html_url":"https://github.com/devopsmariocom/test-lerna-semantic-release","commit_stats":null,"previous_names":["devopsmariocom/test-lerna-semantic-release"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Ftest-lerna-semantic-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Ftest-lerna-semantic-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Ftest-lerna-semantic-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsmariocom%2Ftest-lerna-semantic-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devopsmariocom","download_url":"https://codeload.github.com/devopsmariocom/test-lerna-semantic-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439470,"owners_count":19963097,"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":"2025-03-01T23:49:14.234Z","updated_at":"2025-03-01T23:49:14.721Z","avatar_url":"https://github.com/devopsmariocom.png","language":"Shell","readme":"# test-lerna-semantic-release\nTesting repo to verify lerna-semantic-release functionality\n\n## Steps to setup lerna-semantic-release\n\n### Install\n\n1. $ `yarn init -y`\n2. $ `yarn add -D lerna@2.0.0-beta.38 lerna-semantic-release commitizen`\n3. $ `commitizen init cz-lerna-changelog --save-dev --save-exact`\n4. $ `lerna init`\n\n\n###  Setup CI\n\n1. Login to travis and add your new project https://travis-ci.org/profile\n2. Go to project settings and set following variables in 'display values off' mode\n3. Get github personal token here https://github.com/settings/tokens and set it to `GH_TOKEN`\n4. set `RELEASE_GH_USERNAME` and `RELEASE_GH_EMAIL`\n5. set `RELEASE_GH_TOKEN` to github personal token created in step 1.\n6. set `NPM_CONFIG_EMAIL` and `NPM_CONFIG_USERNAME`\n7. login to npm and get token $ `npm login \u0026\u0026 cat ~/.npmrc` set token to `NPM_TOKEN`\n8. copy `./package.json` `./.travis.yml` and `./.ci` folder to your project\n\n\n### Setup packages\n\n1. create packages under packages directory\n2. set for each scoped package\n```json\n  \"publishConfig\": {\n    \"access\": \"public\"\n  },\n```\n\n\n### Initial release\n\nRun manual_release.sh for each package.\n\n```bash\n$ ./manual-release.sh @elmariofredo/test-lerna-semantic-release-p2 1.0.0 \u0026\u0026 \\\n./manual-release.sh @elmariofredo/test-lerna-semantic-release-p1 1.0.0 \u0026\u0026 \\\n./manual-release.sh @elmariofredo/test-lerna-semantic-release 1.0.0\n```\n\n\n### Commit Workflow\n\n1. $ `git add README.md`\n2. $ `git cz` !!!check if you have valid scope in Troubleshooting section!!!\n3. $ `git commit \u0026\u0026 git push`\n\n\n## Troubleshooting\n\n1. **error: message=There are no relevant changes, so no new version is released., code=ENOCHANGE**\n\n    make sure that commit message match with `/^(\\w*)(\\(([\\w\\$\\.\\-\\* ]*)\\))?\\: (.*)$/` pattern as described here https://github.com/atlassian/lerna-semantic-release/issues/73#issuecomment-286766534\n\n2. **ERR! commits The commit the last release of this package was derived from is not in the direct history of the \"master\" branch.**\n\n    Check if you have all env variables properly set specially `GH_TOKEN`\n\n3. **npm ERR! code ENEEDAUTH**\n\n    If you decide to use own CI script make sure that you are not running semantic-release package.json script using yarn command($ `yarn semantic-release`). For some strange reason it won't reach auth information from within yarn subshell\n\n    see issue https://github.com/yarnpkg/yarn/issues/2935\n\n4. some other errror\n\n    Check if variables are properly set, after_succes script will show you variables at the beggining of execution with masked sensitive tokens. For some strange reason it can happen that Travis CI will forgot or simply wont set variables from settings to execution context.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsmariocom%2Ftest-lerna-semantic-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevopsmariocom%2Ftest-lerna-semantic-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsmariocom%2Ftest-lerna-semantic-release/lists"}