From a9dc99f711a4aa978c6b4ef1c4c91d73829ac2c0 Mon Sep 17 00:00:00 2001 From: Lance Gliser Date: Fri, 14 Jun 2024 12:52:51 -0500 Subject: [PATCH] Fixing CI/CD auth --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83b8585..3f77936 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,9 +67,15 @@ jobs: run: | sed -i "s|\"version\": \"0.0.0\"|\"version\": \"${{ needs.metadata.outputs.version }}\"|g" ./package.json - - name: Build and publish Node package + - name: Install dependencies + env: + NPM_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }} run: | + echo -e "\n//dpbuild.jfrog.io/:_authToken=${NPM_TOKEN}" >> .npmrc npm ci + + - name: Build package + run: | npm run build # Remove .npmrc so that we can easily change registries to npm-edge (for publishing) rm -f .npmrc