Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
ci: use cache feature of @actions/setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Mar 14, 2024
1 parent 2eb4079 commit 60e1a4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.x"

cache: "npm"
- run: npx semantic-release
8 changes: 1 addition & 7 deletions .github/workflows/pr-check_compliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/cache@v4
name: Cache dependencies
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pr-clang-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/cache@v4
name: Cache dependencies
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Get NCS version
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/update-from-ncs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/cache@v4
name: Cache dependencies
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Get NCS version
Expand Down

0 comments on commit 60e1a4b

Please sign in to comment.