Skip to content

Commit

Permalink
Updated actions/cache@v3 and actions/checkout@v3 to actions/cache@v4 …
Browse files Browse the repository at this point in the history
…and actions/checkout@v4 in GitHub Actions workflows.
  • Loading branch information
joelposti committed Jul 26, 2024
1 parent 785e63c commit 296462a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check-and-test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
image: response200/node-build:latest
options: --user root:root
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -27,8 +27,8 @@ jobs:
options: --user root:root
needs: lint # Run after lint so that lint job has an opportunity to fill npm cache.
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -42,8 +42,8 @@ jobs:
options: --user root:root
needs: lint # Run after lint so that lint job has an opportunity to fill npm cache.
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
# scripts/ci/prepare-release.sh depends on git tags being fetched.
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
image: response200/node-build:latest
options: --user root:root
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
- run: scripts/ci/audit.sh
Expand All @@ -26,10 +26,10 @@ jobs:
options: --user root:root
needs: audit
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -43,10 +43,10 @@ jobs:
options: --user root:root
needs: lint # Run after lint so that audit job has an opportunity to fill npm cache.
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -60,10 +60,10 @@ jobs:
options: --user root:root
needs: lint # Run after lint so that audit job has an opportunity to fill npm cache.
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -79,7 +79,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rev }}
# scripts/ci/release.sh depends on all git branches being fetched.
Expand Down

0 comments on commit 296462a

Please sign in to comment.