From f1a11916848529c1a8403999d5d02348d8f2f6fb Mon Sep 17 00:00:00 2001 From: William Wong Date: Thu, 19 Sep 2024 18:28:51 -0700 Subject: [PATCH] Add npm version --- .github/workflows/publish-github-pages.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/publish-github-pages.yaml b/.github/workflows/publish-github-pages.yaml index abc01e6812..77ca16f9b8 100644 --- a/.github/workflows/publish-github-pages.yaml +++ b/.github/workflows/publish-github-pages.yaml @@ -12,6 +12,9 @@ defaults: run: shell: bash +env: + node-version: 22 + jobs: build: runs-on: ubuntu-latest @@ -20,6 +23,12 @@ jobs: - name: Checking out for ${{ github.ref }} uses: actions/checkout@v2 + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + cache: npm + # - name: Run npm ci --no-production # env: # NODE_ENV: production