diff --git a/.github/workflows/staging.yml b/.github/workflows/build.yml
similarity index 85%
rename from .github/workflows/staging.yml
rename to .github/workflows/build.yml
index 93f5525b..a26ab0c2 100644
--- a/.github/workflows/staging.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: Publish on MyGet
+name: Build
on:
@@ -18,7 +18,7 @@ jobs:
steps:
- name: Checkout source code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Generate test cases
working-directory: ./test/Esprima.Tests.Test262
@@ -28,7 +28,7 @@ jobs:
run: dotnet test --configuration Release --logger GitHubActions
- name: Pack with dotnet
- run: dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:PackageVersion=3.0.0-preview-$GITHUB_RUN_NUMBER
+ run: dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:VersionSuffix=preview-$GITHUB_RUN_NUMBER
- name: Push with dotnet
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/esprimadotnet/api/v2/package
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index b1645735..cb02414f 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -1,4 +1,4 @@
-name: Build
+name: PR Check
on:
@@ -18,7 +18,7 @@ jobs:
steps:
- name: Checkout source code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Generate test cases
working-directory: ./test/Esprima.Tests.Test262
@@ -35,7 +35,7 @@ jobs:
steps:
- name: Checkout source code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Generate test cases
working-directory: ./test/Esprima.Tests.Test262
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a177f65f..b0101173 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,4 +1,4 @@
-name: Publish on NuGet
+name: Release
on:
push:
@@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout source code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Generate test cases
working-directory: ./test/Esprima.Tests.Test262
diff --git a/src/Esprima/Esprima.csproj b/src/Esprima/Esprima.csproj
index b61dec04..87685430 100644
--- a/src/Esprima/Esprima.csproj
+++ b/src/Esprima/Esprima.csproj
@@ -4,7 +4,6 @@
Esprima
Esprima .NET
en-US
- 0
net462;netstandard2.0;netstandard2.1
../Esprima.snk
true
@@ -12,7 +11,11 @@
javascript, parser, ecmascript
https://github.com/sebastienros/esprima-dotnet
BSD-3-Clause
- 3.0.0-beta-$(BuildNumber)
+
+ 0
+ 3.0.5
+ beta-$(BuildNumber)
+ $(VersionPrefix).$(BuildNumber)
true