From 85a0cb69b55d8f7f5475df6a43b2b03a89bc61a7 Mon Sep 17 00:00:00 2001 From: Neill Robson Date: Mon, 20 May 2024 13:35:27 -0400 Subject: [PATCH] Add temporary Artifactory secret Eventually we want the secret to be under the pendo-ops email, but for now I'm just testing if the personal access key works. --- .github/workflows/publish.yml | 4 ++++ ci.npmrc | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 ci.npmrc diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b406874..75039d0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,10 @@ jobs: uses: actions/configure-pages@v4 - name: Setup Node uses: actions/setup-node@v4 + - name: Prepare npmrc + run: envsubst < ci.npmrc > .npmrc + env: + ARTIFACTORY_TOKEN: '${{ secrets.ARTIFACTORY_TOKEN }}' - name: Install dependencies uses: bahmutov/npm-install@v1 - name: Build project diff --git a/ci.npmrc b/ci.npmrc new file mode 100644 index 0000000..49d673d --- /dev/null +++ b/ci.npmrc @@ -0,0 +1,3 @@ +@pendo:registry=https://pendo.jfrog.io/artifactory/api/npm/web/ +//pendo.jfrog.io/artifactory/api/npm/web/:_auth=${ARTIFACTORY_TOKEN} +//pendo.jfrog.io/artifactory/api/npm/web/:always-auth=true