You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# run: sed -i 's+<VersionPrefix>${{needs.setup-outputs.outputs.currentTag}}</VersionPrefix>+<VersionPrefix>${{env.newTag}}</VersionPrefix>+g' ./CSharpToJavaScript.csproj
46
-
#- uses: actions4git/setup-git@v1
47
-
#- run: |
48
-
# git commit -am "Nuget ${{env.newTag}}"
49
-
# git push
44
+
- name: Edit csproj
45
+
run: sed -i 's+<VersionPrefix>${{needs.setup-outputs.outputs.currentTag}}</VersionPrefix>+<VersionPrefix>${{env.newTag}}</VersionPrefix>+g' ./CSharpToJavaScript.csproj
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
56
-
# with:
57
-
# tag_name: ${{ env.newTag }}
58
-
# release_name: ${{ env.newTag }}
59
-
# body_path: ./release.txt
60
-
# draft: false
61
-
# prerelease: false
51
+
- name: Create Release
52
+
id: create_release
53
+
uses: softprops/action-gh-release@v2
54
+
with:
55
+
tag_name: ${{ env.newTag }}
56
+
body_path: ./release.txt
57
+
draft: false
58
+
prerelease: false
59
+
generate_release_notes: true
62
60
- name: Update .csproj
63
61
#TODO? I don't know how to cat a file and paste...
64
62
#- run: |
65
63
# file=$(cat ./release.txt)
66
64
# echo "releaseNotes=$file" >> $GITHUB_ENV
67
65
run: sed -i 's+<PackageReleaseNotes></PackageReleaseNotes>+<PackageReleaseNotes>https://github.com/TiLied/CSharpToJavaScript/releases/tag/${{env.newTag}}</PackageReleaseNotes>+g' ./CSharpToJavaScript.csproj
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,13 @@
3
3
4
4
This library is a "core" where all the "magic" happens for translating/converting cs into js, using Roslyn. You should use the [CLI](https://github.com/TiLied/CSTOJS_CLI)/dotnet tool, it behaves more or less like dotnet cli, tsc cli, meson. Look for the implementation in [CLI](https://github.com/TiLied/CSTOJS_CLI), [BWA app](https://github.com/TiLied/CSTOJS_BWA) or simple "Hello world" below.
5
5
6
+
## Status
7
+
test262-parser([master](github.com/tc39/test262-parser-tests)): Only JS part (code is not public, yet. ES3 implemented) Total tests: 5363 | Passed: 2786 (51 %) | Failed: 2577
**Note: Tests run with "UseVarOverLet" and "DisableCompilationErrors" options, using [Jint](github.com/sebastienros/jint) as an engine. The goal is to generate valid C# code and get rid of "DisableCompilationErrors" option.
12
+
6
13
## Hello world
7
14
- Install [nuget package](https://www.nuget.org/packages/CSharpToJavaScript/) or download a [specific version](https://github.com/TiLied/CSharpToJavaScript/releases).
8
15
- Skip this if using a Nuget package. Follow [the instructions on how to add a project reference](https://learn.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio?pivots=dotnet-7-0#add-a-project-reference).
@@ -34,6 +41,7 @@ FileData file = new()
34
41
35
42
## Related Repository
36
43
- Dotnet tool/CLI for a library: https://github.com/TiLied/CSTOJS_CLI
44
+
- Tests: https://github.com/TiLied/CSTOJS_Tests
37
45
- Library for generating various stuff: https://github.com/TiLied/CSTOJS_GenLib
0 commit comments