Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx semantic-release-cli setup #369

Open
contact2praful opened this issue Apr 21, 2022 · 1 comment
Open

npx semantic-release-cli setup #369

contact2praful opened this issue Apr 21, 2022 · 1 comment

Comments

@contact2praful
Copy link

While doing the setup of semantic getting below issue

npx semantic-release-cli setup

? Is the GitHub repository private? Yes
? What is your npm registry? http://registry.npmjs.org/
? Which authentication method is this npm registry using? Legacy (username, password, email)
? What is your npm username? username
? What is your npm password? [hidden]
? What is your npm email address? sampleEmail@gmail.com
? Provide a GitHub Personal Access Token (create a token at https://github.com/settings/tokens/new?scopes=repo) TOKEN
? What CI are you using? Github Actions

ERR! semantic-release TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
ERR! semantic-release at new NodeError (node:internal/errors:372:5)
ERR! semantic-release at Function.from (node:buffer:323:9)
ERR! semantic-release at createEncryptedSecret (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:23:31)
ERR! semantic-release at createSecret (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:46:30)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:87:3)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/ci.js:49:3)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/index.js:89:5)
ERR! semantic-release TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
ERR! semantic-release at new NodeError (node:internal/errors:372:5)
ERR! semantic-release at Function.from (node:buffer:323:9)
ERR! semantic-release at createEncryptedSecret (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:23:31)
ERR! semantic-release at createSecret (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:46:30)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/github-actions.js:87:3)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/lib/ci.js:49:3)
ERR! semantic-release at module.exports (/Users/XYZUSER/.npm/_npx/4b6729947d3d91fc/node_modules/semantic-release-cli/src/index.js:89:5) {
ERR! semantic-release code: 'ERR_INVALID_ARG_TYPE'
ERR! semantic-release }

@seebeen
Copy link
Member

seebeen commented Aug 20, 2023

Operating system, node version, and are you pasting the entire token correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants