Assets try to push on GitHub instead of GitLab
See original GitHub issueExpected
I expect to publish on gitlab
Result
I publish on GitHub
Reproduction
{
"devDependencies": {
"@semantic-release/git": "^5.0.0",
"@semantic-release/gitlab": "^2.1.4",
"@semantic-release/npm": "^3.2.5"
},
"release": {
"branch": "master",
"npmPublish": false,
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/git",
{
"path": "@semantic-release/gitlab",
"gitlabUrl": "https://gitlab.example.com"
}
],
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
{
"path": "package.json"
},
{
"path": "dist/*.es.js",
"label": "1 file ES6"
},
{
"path": "dist/*.es.js.map",
"label": "1 file ES6 sourcemap"
},
{
"path": "dist/*.min.js",
"label": "1 file UMD compressed"
},
{
"path": "dist/*.min.js.map",
"label": "1 file UMD compressed sourcemap"
},
{
"path": "dist/*.js",
"label": "1 file UMD uncompressed"
},
{
"path": "dist/*.js.map",
"label": "1 file UMD uncompressed sourcemap"
},
{
"path": "lib/*.js",
"label": "source files ES5"
}
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/gitlab",
"gitlabUrl": "https://gitlab.example.com"
}
]
}
}
Logs
$ npx semantic-release
npx: installed 377 in 11.097s
[Semantic release]: Running semantic-release version 15.4.1
[Semantic release]: Load plugin verifyConditions from @semantic-release/npm
[Semantic release]: Load plugin verifyConditions from @semantic-release/git
[Semantic release]: Load plugin verifyConditions from @semantic-release/gitlab
[Semantic release]: Load plugin analyzeCommits from @semantic-release/commit-analyzer
[Semantic release]: Load plugin generateNotes from @semantic-release/release-notes-generator
[Semantic release]: Load plugin prepare from @semantic-release/npm
[Semantic release]: Load plugin prepare from @semantic-release/git
[Semantic release]: Load plugin publish from @semantic-release/npm
[Semantic release]: Load plugin publish from @semantic-release/gitlab
[Semantic release]: Load plugin success from @semantic-release/github
[Semantic release]: Load plugin fail from @semantic-release/github
[Semantic release]: Run automated release from branch master
[Semantic release]: Call plugin verify-conditions
[Semantic release]: Verify GitLab authentication (https://git.example.com/api/v4)
[Semantic release]: Found git tag v0.3.4 associated with version 0.3.4
[Semantic release]: Found 4 commits since last release
[Semantic release]: Call plugin analyze-commits
[Semantic release]: Analyzing commit: Merge branch 'dev' into 'master'
fix(release): installing plugins
See merge request dev-tools/rollup-umd-scripts!75
[Semantic release]: The commit should not trigger a release
[Semantic release]: Analyzing commit: fix(release): installing plugins
[Semantic release]: The release type for the commit is patch
[Semantic release]: Analyzing commit: fix(release): installing plugins
[Semantic release]: The release type for the commit is patch
[Semantic release]: Analyzing commit: Merge branch 'dev' into 'master'
fix(release): installing plugins
See merge request dev-tools/rollup-umd-scripts!74
[Semantic release]: The commit should not trigger a release
[Semantic release]: Analysis of 4 commits complete: patch release
[Semantic release]: The next release version is 0.3.5
[Semantic release]: Call plugin verify-release
[Semantic release]: Call plugin generateNotes
[Semantic release]: Call plugin prepare
[Semantic release]: Wrote version 0.3.5 to package.json
[Semantic release]: Wrote version 0.3.5 to package-lock.json
[Semantic release]: Found 1 file(s) to commit
[Semantic release]: Creating tag v0.3.5
[Semantic release]: Prepared Git release: v0.3.5
[Semantic release]: Call plugin generateNotes
[Semantic release]: Create tag v0.3.5
[Semantic release]: Call plugin publish
[Semantic release]: Published GitLab release: v0.3.5
[Semantic release]: Verify GitHub authentication
[Semantic release]: Verify GitHub authentication
[Semantic release]: ENOGHTOKEN No GitHub token specified.
A GitHub personnal token (https://github.com/semantic-release/github/blob/master/README.md#github-authentication) must be created and set in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment.
Please make sure to create a GitHub personnal token (https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line) and to set it in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment. The token must allow to push to the repository dev-tools/rollup-umd-scripts.
[Semantic release]: ENOGHTOKEN No GitHub token specified.
A GitHub personnal token (https://github.com/semantic-release/github/blob/master/README.md#github-authentication) must be created and set in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment.
Please make sure to create a GitHub personnal token (https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line) and to set it in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment. The token must allow to push to the repository dev-tools/rollup-umd-scripts.
{ SemanticReleaseError: No GitHub token specified.
at module.exports (/root/.npm/_npx/56/lib/node_modules/semantic-release/node_modules/@semantic-release/github/lib/get-error.js:6:10)
at module.exports (/root/.npm/_npx/56/lib/node_modules/semantic-release/node_modules/@semantic-release/github/lib/verify.js:98:17)
at success (/root/.npm/_npx/56/lib/node_modules/semantic-release/node_modules/@semantic-release/github/index.js:38:11)
at validator (/root/.npm/_npx/56/lib/node_modules/semantic-release/lib/plugins/normalize.js:43:28)
at pReduce (/root/.npm/_npx/56/lib/node_modules/semantic-release/lib/plugins/pipeline.js:36:40)
at Promise.all.then.value (/root/.npm/_npx/56/lib/node_modules/semantic-release/node_modules/p-reduce/index.js:16:10)
at process._tickCallback (internal/process/next_tick.js:178:7)
name: 'SemanticReleaseError',
code: 'ENOGHTOKEN',
details: 'A [GitHub personnal token](https://github.com/semantic-release/github/blob/master/README.md#github-authentication) must be created and set in the `GH_TOKEN` or `GITHUB_TOKEN` environment variable on your CI environment.\n\nPlease make sure to create a [GitHub personnal token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line) and to set it in the `GH_TOKEN` or `GITHUB_TOKEN` environment variable on your CI environment. The token must allow to push to the repository dev-tools/rollup-umd-scripts.',
semanticRelease: true,
pluginName: '@semantic-release/github' }
ERROR: Job failed: exit code 1
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Push rules - GitLab Documentation
Push rules are pre-receive Git hooks you can enable in a user-friendly interface. Push rules give you more control over what can and...
Read more >git - Push existing project into Github - Stack Overflow
Go to Repositories and Push (you'll either see the "nothing to push" thing, or it'll push your files/changes to the newly-auto-made repo). Wonder...
Read more >Force Push in Git - Everything You Need to Know | Tower Blog
In this article, we will answer all the most popular questions surrounding the powerful Force Push command.
Read more >Common Issues with GitKraken Client | Integration Error ...
Learn how to address errors with integrations, Git pushing, Git branches, ... When trying to log in, you may see the following error:...
Read more >How to set up a Unity project in GitHub
This creates a hidden folder .git within the project directory to hold the files ... to the remote one, let's try to push...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So I have reproduced the test env and I feel ashamed that it was finally only disturbance for you.
All your point were proved. I know I was trying to get my config work without
@semantic-release/gitlab-config
, but I won’t search the CI and investigate why.But still, thanks you for supporting your users, and for releasing such a good tool.
Yes please.