From a9a1d798b59dafde30994e22892bfa8bc25de52f Mon Sep 17 00:00:00 2001 From: Shamiul Mowla Date: Thu, 18 Jul 2024 12:59:53 -0400 Subject: [PATCH] Update deployRelease.yml Set node version to 22.4.x --- .github/workflows/deployRelease.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployRelease.yml b/.github/workflows/deployRelease.yml index eaaa2d974..9ff28e990 100644 --- a/.github/workflows/deployRelease.yml +++ b/.github/workflows/deployRelease.yml @@ -32,13 +32,19 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 22.4.x - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: | ${{ secrets.ALLOY_BOT_GITHUB_SSH_PRIVATE_KEY }} ${{ secrets.CDN_PRIVATE_KEY }} + - uses: actions/cache@v4 + id: npm-cache + with: + path: "**/node_modules" + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }} # increment NPM_CACHE_VERSION secret to force cache reset - name: Install dependencies + if: steps.npm-cache.outputs.cache-hit != 'true' run: npm ci - run: ./scripts/deploy.js ${{ github.event.inputs.version }} latest env: @@ -59,12 +65,17 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 22.4.x - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: | ${{ secrets.ALLOY_BOT_GITHUB_SSH_PRIVATE_KEY }} ${{ secrets.CDN_PRIVATE_KEY }} + - uses: actions/cache@v2 + id: npm-cache + with: + path: "**/node_modules" + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }} # increment NPM_CACHE_VERSION secret to force cache reset - name: Install dependencies if: steps.npm-cache.outputs.cache-hit != 'true' run: npm ci