Skip to content

Commit 5602cb4

Browse files
committed
try disable nbgv for pack.
1 parent f941e79 commit 5602cb4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,15 @@ jobs:
9494
echo "target=Vulthil.SharedKernel.slnx" >> $GITHUB_OUTPUT
9595
fi
9696
- name: Build
97-
run: dotnet build ${{ steps.scope.outputs.target }} --configuration Release
97+
run: dotnet build ${{ steps.scope.outputs.target }} --configuration Release --no-restore
9898
- name: Test
9999
run: dotnet test ${{ steps.scope.outputs.target }} --configuration Release --no-build
100100
- name: Pack
101101
run: |
102102
VERSION="${{ steps.version.outputs.version }}"
103103
if [ "${{ github.event_name }}" = "pull_request" ]; then
104104
PREVIEW_NUMBER=$(git rev-list --count origin/main..HEAD)
105-
PR_NUMBER="${{ github.event.pull_request.number }}"
106-
VERSION="${VERSION}-preview.pr${PR_NUMBER}.${PREVIEW_NUMBER}"
107-
elif [ "${{ github.ref }}" != "refs/heads/main" ]; then
108-
VERSION="${VERSION}-dev.${{ github.run_number }}"
105+
VERSION="${VERSION}-preview.${PREVIEW_NUMBER}"
109106
fi
110107
echo "::notice::Packing with version: $VERSION"
111108
@@ -127,7 +124,7 @@ jobs:
127124
128125
while IFS= read -r proj; do
129126
[ -z "$proj" ] && continue
130-
dotnet pack "$proj" --configuration Release --no-build -o ./nupkgs -p:PackageVersion=$VERSION
127+
dotnet pack "$proj" --configuration Release -o ./nupkgs -p:DisableNbgv=true -p:PackageVersion="$VERSION"
131128
done <<< "$PROJECTS"
132129
- name: Check if nupkgs exist
133130
id: check_nupkgs

0 commit comments

Comments
 (0)