From 784387f4d6040ba5a627bc347c82cb684965d16b Mon Sep 17 00:00:00 2001 From: Neill Robson Date: Thu, 6 Jun 2024 10:21:29 -0400 Subject: [PATCH] Just pull npm deps from action cache --- .github/workflows/lookaside.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lookaside.yml b/.github/workflows/lookaside.yml index acf4190..6f3ed9f 100644 --- a/.github/workflows/lookaside.yml +++ b/.github/workflows/lookaside.yml @@ -31,9 +31,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - path: | - dist - node_modules + path: dist # Deployment job deploy: @@ -49,6 +47,14 @@ jobs: uses: actions/setup-node@v4 - name: Download artifact uses: actions/download-artifact@v4 + with: + path: dist + - name: Prepare npmrc + run: envsubst < ci.npmrc > .npmrc + env: + ARTIFACTORY_TOKEN: '${{ secrets.ARTIFACTORY_TOKEN }}' + - name: Install dependencies + uses: bahmutov/npm-install@v1 - name: Add service key env: GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}