How can I test it locally (on my windows) before I can hook it up to our Jenkins? #3319
Replies: 1 comment
-
Dont need anymore. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Y'all,
Is there a way to run tests on local (We are windows shop :-) ) before I can create workflow in our Jenkins.
When I run it on my local, it gives me this weird message and not sure how to test the automated versioning process:
`$ npx semantic-release
[1:12:23 PM] [semantic-release] » i Running semantic-release version 23.1.1
[1:12:24 PM] [semantic-release] » √ Loaded plugin "verifyConditions" from "@semantic-release/npm"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "verifyConditions" from "@semantic-release/github"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "prepare" from "@semantic-release/npm"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "publish" from "@semantic-release/npm"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "publish" from "@semantic-release/github"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "addChannel" from "@semantic-release/npm"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "addChannel" from "@semantic-release/github"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "success" from "@semantic-release/github"
[1:12:24 PM] [semantic-release] » √ Loaded plugin "fail" from "@semantic-release/github"
[1:12:24 PM] [semantic-release] » ‼ This run was not triggered in a known CI environment, running in dry-run mode.
[1:12:24 PM] [semantic-release] » ‼ Skip step "fail" of plugin "@semantic-release/github" in dry-run mode
[1:12:24 PM] [semantic-release] » × ENOGITREPO Not running from a git repository.
The semantic-release command must be executed from a Git repository.
The current working directory is C:\Program Files\Git.
Please verify your CI configuration to make sure the semantic-release command is executed from the root of the cloned repository.
AggregateError:
SemanticReleaseError: Not running from a git repository.
at default (file:///C:/Program%20Files/Git/node_modules/semantic-release/lib/get-error.js:6:10)
at default (file:///C:/Program%20Files/Git/node_modules/semantic-release/lib/verify.js:15:17)
at async run (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:278:22)
at async default (file:///C:/Program%20Files/Git/node_modules/semantic-release/cli.js:55:5)
at default (file:///C:/Program%20Files/Git/node_modules/semantic-release/lib/verify.js:41:11)
at async run (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:278:22)
at async default (file:///C:/Program%20Files/Git/node_modules/semantic-release/cli.js:55:5) {
errors: [
SemanticReleaseError: Not running from a git repository.
at default (file:///C:/Program%20Files/Git/node_modules/semantic-release/lib/get-error.js:6:10)
at default (file:///C:/Program%20Files/Git/node_modules/semantic-release/lib/verify.js:15:17)
at async run (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///C:/Program%20Files/Git/node_modules/semantic-release/index.js:278:22)
at async default (file:///C:/Program%20Files/Git/node_modules/semantic-release/cli.js:55:5) {
code: 'ENOGITREPO',
details: 'The
semantic-release
command must be executed from a Git repository.\n' +'\n' +
'The current working directory is
C:\\Program Files\\Git
.\n' +'\n' +
'Please verify your CI configuration to make sure the
semantic-release
command is executed from the root of the cloned repository.',semanticRelease: true
}
]
}
`
Thoughts or inputs community 🙏
Beta Was this translation helpful? Give feedback.
All reactions