From 8c8151f8f9755645b75151c57486911cc6bedfa7 Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Wed, 26 Oct 2022 16:41:17 -0700 Subject: [PATCH] `release.yml` Fix nuget push command --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fe73e864..69bb8ffb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,14 @@ on: jobs: publish-npm: name: Publish NPM - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -71,9 +72,9 @@ jobs: - name: Upload to NuGet run: | - dotnet nuget push ./bin/Release/*.nupkg Google.FlatBuffers.csproj --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json + dotnet nuget push ./bin/Release/*.nupkg --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}