From eb9e716261a11bfc373676c3447e68d703a6549f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=96=AF=E5=85=8B?= Date: Fri, 15 Nov 2024 19:12:59 +0800 Subject: [PATCH] Update npm-grunt.yml --- .github/workflows/npm-grunt.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/npm-grunt.yml b/.github/workflows/npm-grunt.yml index 92200bc..6c1f72d 100644 --- a/.github/workflows/npm-grunt.yml +++ b/.github/workflows/npm-grunt.yml @@ -26,6 +26,7 @@ jobs: run: | npm install -g grunt-cli npm install + npm install grunt --save-dev # 本地安装 grunt - name: Run Grunt run: | @@ -35,11 +36,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - always-auth: false # Optional, set to true if always-auth is needed - architecture: x64 # Optional, specify target architecture - check-latest: true # Optional, use latest available matching version - registry-url: "https://registry.npmjs.org" # Optional registry URL for authentication - scope: "" # Optional, for scoped registries if needed - token: ${{ secrets.GITHUB_TOKEN }} # Optional, token for GitHub registry access - cache: "npm" # Optional, specify package manager for caching (e.g., npm, yarn, pnpm) - cache-dependency-path: "package-lock.json" # Optional, path to dependency lock file + always-auth: false + architecture: x64 + check-latest: true + registry-url: "https://registry.npmjs.org" + scope: "" + token: ${{ secrets.GITHUB_TOKEN }} + cache: "npm" + cache-dependency-path: "package-lock.json"