Skip to content

Commit

Permalink
ci: fix working folder for doing component detection in last release …
Browse files Browse the repository at this point in the history
…notes
  • Loading branch information
chrissimon-au committed Sep 22, 2024
1 parent 99ac5b7 commit e822584
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/ci/common.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ let languageServer =
{ Name = "Contextive.LanguageServer"
Path = "language-server/Contextive.LanguageServer" }

let whenComponentInRelease (component': string) (folder: string) = whenStage $"Check for component {component'} in LAST_RELEASE_NOTES.md" {
workingDir folder
let whenComponentInRelease (component': string) = whenStage $"Check for component `{component'}` in LAST_RELEASE_NOTES.md" {
workingDir ""
run "pwd"
run "cat LAST_RELEASE_NOTES.md"
run (fun ctx ->
seq { component'; "language-server" }
|> String.concat "|"
Expand Down
2 changes: 1 addition & 1 deletion src/intellij/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pipeline "Contextive IntelliJ Plugin" {
}

stage "Publish Package" {
whenComponentInRelease "intellij" "../.."
whenComponentInRelease "intellij"
run (bashCmd "./gradlew publishPlugin")
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/visualstudio/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pipeline "Contextive Visual Studio Extension" {

// See https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-publishing-a-visual-studio-extension-via-command-line?view=vs-2022
stage "Publish to Marketplace" {
whenComponentInRelease "visual-studio" "../../.."
whenComponentInRelease "visual-studio"
run (fun ctx ->
$"\"{vsixPublisherExe}\" publish -payload \"{visualStudioAssetRelativePath}/{visualStudioAssetFileName}\" -publishManifest \"publishmanifest.json\" -personalAccessToken \"{ctx.GetEnvVar(args.vscePat.Name)}\""
) }
Expand Down
2 changes: 1 addition & 1 deletion src/vscode/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pipeline "Contextive VsCode Extension" {
}

stage "Publish to Marketplaces" {
whenComponentInRelease "vscode" "../.."
whenComponentInRelease "vscode"

stage "To Microsoft VS Marketplace" { run (fun ctx -> $"npx vsce publish --packagePath {vsCodeAssetFileName ctx}") }
stage "To Open-Vsx Marketplace" { run (fun ctx -> $"npx ovsx publish {vsCodeAssetFileName ctx} -p \"{ctx.GetEnvVar(args.ovsxPat.Name)}\"") }
Expand Down

0 comments on commit e822584

Please sign in to comment.