Skip to content

Commit

Permalink
Update npm-grunt.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang88550 authored Nov 15, 2024
1 parent 4a15a87 commit eb9e716
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/npm-grunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: |
npm install -g grunt-cli
npm install
npm install grunt --save-dev # 本地安装 grunt
- name: Run Grunt
run: |
Expand All @@ -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"

0 comments on commit eb9e716

Please sign in to comment.