Skip to content

Commit

Permalink
ci: ensure the component in last release notes is operating in correc…
Browse files Browse the repository at this point in the history
…t folder
  • Loading branch information
chrissimon-au committed Sep 20, 2024
1 parent 08ac322 commit 5977c02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/ci/common.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ let languageServer =
{ Name = "Contextive.LanguageServer"
Path = "language-server/Contextive.LanguageServer" }

let whenComponentInRelease (component': string) = whenStage $"Check for component {component'} in LAST_CHANGE.md" {
let whenComponentInRelease (component': string) (folder: string) = whenStage $"Check for component {component'} in LAST_RELEASE_NOTES.md" {
workingDir folder
run (fun ctx ->
seq { component'; "language-server" }
|> String.concat "|"
Expand Down
4 changes: 2 additions & 2 deletions src/intellij/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pipeline "Contextive IntelliJ Plugin" {
run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {intelliJAssetFileName ctx}")
}

stage "Publish Package" {
whenComponentInRelease "intellij"
stage "Publish Package" {
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 5977c02

Please sign in to comment.