Skip to content

Commit 1d99708

Browse files
author
Maxime Mangel
committed
Release 4.2.0
1 parent 37f0cdb commit 1d99708

File tree

11 files changed

+29
-39
lines changed

11 files changed

+29
-39
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"containerEnv": {
4949
// Expose the local environment variable to the container
5050
// They are used for releasing and publishing from the container
51-
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}",
51+
"GITHUB_TOKEN_FABLE_ORG": "${localEnv:GITHUB_TOKEN_FABLE_ORG}",
5252
"FABLE_NUGET_KEY": "${localEnv:FABLE_NUGET_KEY}"
5353
},
5454

build/GithubRelease.fs

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,39 +41,30 @@ let private createTag (version: ChangelogParser.Types.Version) =
4141
|> CmdLine.toString
4242
)
4343

44-
Command.Run(
45-
"git",
46-
CmdLine.empty
47-
|> CmdLine.appendRaw "tag"
48-
|> CmdLine.appendPrefix "-a" (versionText)
49-
|> CmdLine.appendPrefix "-m" $"Release {versionText}"
50-
|> CmdLine.toString
51-
)
44+
// Command.Run(
45+
// "git",
46+
// CmdLine.empty
47+
// |> CmdLine.appendRaw "tag"
48+
// |> CmdLine.appendPrefix "-a" (versionText)
49+
// |> CmdLine.appendPrefix "-m" $"Release {versionText}"
50+
// |> CmdLine.toString
51+
// )
5252

5353
Command.Run(
5454
"git",
5555
"push"
5656
)
5757

58-
Command.Run(
59-
"git",
60-
CmdLine.empty
61-
|> CmdLine.appendRaw "push"
62-
|> CmdLine.appendRaw "origin"
63-
|> CmdLine.appendRaw versionText
64-
|> CmdLine.toString
65-
)
66-
6758

6859
let handle (args: string list) =
6960
Publish.handle args
7061

71-
let githubToken = Environment.GetEnvironmentVariable("GITHUB_TOKEN")
62+
let githubToken = Environment.GetEnvironmentVariable("GITHUB_TOKEN_FABLE_ORG")
7263

7364
if githubToken = null then
74-
failwith "Missing GITHUB_TOKEN environment variable"
65+
failwith "Missing GITHUB_TOKEN_FABLE_ORG environment variable"
7566

7667
let versionInfo = Changelog.getLastVersion Changelog.fableCLi
7768

78-
createGithubRelease githubToken versionInfo
7969
createTag versionInfo
70+
createGithubRelease githubToken versionInfo

build/Publish.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ let private publishNuget (fsprojDir : string) =
7575
let updatedFsprojContent = Fsproj.replaceVersion fsprojContent lastChangelogVersion
7676
File.WriteAllText(fsprojPath, updatedFsprojContent)
7777
let nupkgPath = Dotnet.pack fsprojDir
78-
let nupkgFolder = Path.GetDirectoryName nupkgPath
79-
Dotnet.Nuget.push(nupkgFolder, nugetKey)
78+
Dotnet.Nuget.push(nupkgPath, nugetKey)
8079
printfn $"Published!"
8180
else
8281
printfn $"Already up-to-date, skipping..."

build/Utils/Nuget.fs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,12 @@ module Dotnet =
77

88
type Nuget =
99

10-
static member push(projectDir: string, nugetKey : string) =
10+
static member push(nupkgPath: string, nugetKey : string) =
1111
Command.Run(
1212
"dotnet",
13-
"nuget push *.nupkg -s https://api.nuget.org/v3/index.json",
14-
workingDirectory = projectDir
13+
$"nuget push {nupkgPath} -s https://api.nuget.org/v3/index.json -k {nugetKey}"
1514
)
1615

17-
static member push
18-
(
19-
projectDir: string,
20-
nugetKey : string,
21-
preBuildAction: unit -> unit
22-
) =
23-
preBuildAction ()
24-
Nuget.push(projectDir, nugetKey)
25-
2616
let pack (projectDir: string) =
2717
let struct (standardOutput, _) =
2818
Command.ReadAsync(

src/Fable.AST/CHANGELOG.md

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

77
## Unreleased
88

9+
## 4.3.0
10+
11+
### Added
12+
13+
* Add `Attributes` to `MemberRefInfo`
14+
915
## 4.2.1
1016

1117
* Get sources from PluginHelper

src/Fable.AST/Fable.AST.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Description>Fable AST</Description>
66
<TargetFramework>netstandard2.0</TargetFramework>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8-
<Version>4.2.1</Version>
8+
<Version>4.3.0</Version>
99
</PropertyGroup>
1010
<ItemGroup>
1111
<Compile Include="Common.fs" />

src/Fable.Cli/CHANGELOG.md

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

77
## Unreleased
88

9+
## 4.2.0
10+
911
* Fix #3480: Function decorated with `[<NamedParams>]` without arguments provided should take an empty object
1012
* Fix #3494: Calling an attached parametrized getter fails in transpiled javascript
1113
* Remove fable-py support

src/Fable.Cli/Fable.Cli.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
55
<OutputType>Exe</OutputType>
66
<TargetFramework>net6.0</TargetFramework>
7-
<Version>4.1.4</Version>
7+
<Version>4.2.0</Version>
88
<PackageReleaseNotes>* Fix #3438: Source maps
99
* Fix #3440: Don't curry arity-1 functions
1010
* Fix #3452: DateTimeOffset conversion to DateTime

src/Fable.Core/CHANGELOG.md

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

77
## Unreleased
88

9+
## 4.1.0
10+
911
* Fix #3482: Remove `Py.python` and `Py.expr_python`
1012
* Add `!^` to `Fable.Core.RustInterop` module
1113
* Fix #3484: Rename `emitStatement` to `emitPyStatement` in `PyInterop`

src/Fable.Core/Fable.Core.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Description>Fable Core Library</Description>
66
<TargetFramework>netstandard2.0</TargetFramework>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8-
<Version>4.0.0</Version>
8+
<Version>4.1.0</Version>
99
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1010
</PropertyGroup>
1111
<ItemGroup>

0 commit comments

Comments
 (0)