From fdfa30d3c8c6ab5cba11d45a8afcc54c40fa14e6 Mon Sep 17 00:00:00 2001 From: Smilin Date: Mon, 29 Apr 2024 16:12:22 +0800 Subject: [PATCH] =?UTF-8?q?0.18:=20=E6=8C=87=E5=AE=9A=20node=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a760657..b319124 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -25,12 +25,19 @@ jobs: restore-keys: | ${{ runner.os }}-node- + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} name: List the state of node modules continue-on-error: true run: npm list - - name: Install dependencies + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: Install dependencies run: npm install # 上傳存儲項目 @@ -110,6 +117,7 @@ jobs: # name: node_modules # path: node_modules + # 載入緩存 - name: Cache node modules id: cache-node-modules uses: actions/cache@v3 diff --git a/package.json b/package.json index 1ab9488..c151cf0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auto-pixai", - "version": "0.17", + "version": "0.18", "description": "自動領取pixai.art獎勵", "main": "app.js", "scripts": {