From 273ad6a451b16e7c1e4820ea8a25e7e176065b57 Mon Sep 17 00:00:00 2001 From: Gabriele Picco Date: Thu, 22 Feb 2024 09:22:57 +0100 Subject: [PATCH] :construction_worker: Update workflow --- .github/workflows/publish-packages.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 4c880bc..09dd7a1 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -75,7 +75,7 @@ jobs: with: node-version: 20 - - name: Build the NPM package + - name: Build and publish the NPM package shell: bash run: | # set the binary name @@ -105,10 +105,7 @@ jobs: bin="${bin}.exe" fi cp "target/${{ matrix.build.TARGET }}/release/${bin}" "${node_pkg}/bin" - - - name: Publish the package - shell: bash - run: | + # publish the package cd "${node_pkg}" echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_GITHUB_TOKEN }}" > ~/.npmrc npm set //npm.pkg.github.com/:_authToken ${{ secrets.NPM_GITHUB_TOKEN }}