From d50de93495df8a9da866487142606efdab96d325 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Thu, 17 Aug 2023 21:52:21 +0800 Subject: [PATCH] fix ci workflow --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 054971e..6b7df46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,10 @@ jobs: - name: Build run: pnpm run build - - name: Set up GitHub registry and publish - run: npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Configure npm for GitHub registry + run: | + echo "@fleetbase:registry=https://npm.pkg.github.com/" >> ~/.npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc + + - name: Publish to GitHub registry + run: npm publish