From 0590c53e547a62648d4ca93977bdfcfb033bb58e Mon Sep 17 00:00:00 2001 From: Frank Lee Date: Sat, 27 Apr 2024 13:13:59 +0800 Subject: [PATCH] Hotfix/gallery build (#337) * fixed gallery build workflow * updated node version --- .github/workflows/github_page.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/github_page.yaml b/.github/workflows/github_page.yaml index cc8f3a9a..483c2adc 100644 --- a/.github/workflows/github_page.yaml +++ b/.github/workflows/github_page.yaml @@ -18,22 +18,10 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18.6 + node-version: 20 - - name: Get yarn cache - id: yarn-cache - run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}" - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn - - - run: yarn install - - run: yarn build + - run: npm install + - run: npm run build - name: Deploy uses: peaceiris/actions-gh-pages@v3