Skip to content

Commit 67641d8

Browse files
author
Maxime Mangel
committed
Release version 4.2.0-2023-11-10_23-31-37
1 parent 0449634 commit 67641d8

4 files changed

Lines changed: 33 additions & 43 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## 4.2.0
10+
11+
### Fixed
12+
13+
* Fix build by replacing webpack with vite
14+
15+
### Changed
16+
17+
* Set output code editor language based on target language
18+
* Set output code editor as readonly again
19+
920
## 4.1.3
1021

1122
* Fable 4.1.3
@@ -160,4 +171,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
160171
### Fixed
161172

162173
* Fix #86: Make a distinction between REPL and Fable version in the info panel
163-
* Init the changelog
174+
* Init the changelog

build.fsx

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
#r "nuget: Fake.IO.FileSystem, 5.23.1"
33
#r "nuget: Fake.Core.Environment, 5.23.1"
44
#r "nuget: Fake.Tools.Git, 5.23.1"
5-
#r "nuget: Fake.Api.GitHub, 5.23.1"
65
#r "nuget: SimpleExec, 11.0.0"
76
#r "nuget: BlackFox.CommandLine, 1.0.0"
87
#r "nuget: FsToolkit.ErrorHandling, 4.10.0"
8+
#r "nuget: Octokit, 9.0.0"
99

1010
open Fun.Build
1111
open Fake.Core
1212
open Fake.IO
1313
open Fake.IO.FileSystemOperators
1414
open Fake.IO.Globbing.Operators
1515
open Fake.Tools
16-
open Fake.Api
1716
open System
1817
open System.IO
1918
open System.Text.RegularExpressions
2019
open BlackFox.CommandLine
2120
open FsToolkit.ErrorHandling
2221
open Fun.Build.Internal
22+
open Octokit
2323

2424
module Glob =
2525

@@ -337,16 +337,25 @@ pipeline "Release" {
337337
Git.Commit.exec Folders.CWD commitMsg
338338
Git.Branches.push Folders.CWD
339339

340-
GitHub.createClientWithToken token
341-
|> GitHub.draftNewRelease
342-
"fable-compiler"
343-
"repl"
344-
releaseVersion
345-
(Changelog.isPreRelease changelogVersion)
346-
(Changelog.getNotes changelogVersion)
347-
// |> GitHub.uploadFile nupkg
348-
|> GitHub.publishDraft
340+
let githubClient = GitHubClient(ProductHeaderValue("fable-release-tool"))
341+
githubClient.Credentials <- Credentials(token)
342+
343+
let newRelease = NewRelease(changelogVersion)
344+
newRelease.Name <- changelogVersion
345+
newRelease.Body <-
346+
Changelog.getNotes changelogVersion
347+
|> String.concat "\n"
348+
newRelease.Draft <- false
349+
newRelease.Prerelease <- false // TODO: Detect if this is a prerelease
350+
351+
githubClient.Repository.Release.Create(
352+
"fable-compiler",
353+
"Fable",
354+
newRelease
355+
)
356+
|> Async.AwaitTask
349357
|> Async.RunSynchronously
358+
|> ignore
350359
)
351360

352361
run "npx gh-pages -d src/App/dist"

src/App/Prelude.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open Fable.Core
66

77
[<RequireQualifiedAccess>]
88
module Literals =
9-
let [<Literal>] REPL_VERSION = "4.1.3" // Do not edit manually
9+
let [<Literal>] REPL_VERSION = "4.2.0" // Do not edit manually
1010
let [<Literal>] STORAGE_KEY = "fable-repl"
1111
let [<Literal>] MAX_LOGS_LENGTH = 200
1212
// let [<Literal>] HOST =

0 commit comments

Comments
 (0)