Skip to content

Commit 726fcb7

Browse files
authored
ci: upgrade actions (#709)
1 parent 19c84b5 commit 726fcb7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
steps:
2121
- name: Cancel previous running workflows
2222
uses: fkirc/skip-duplicate-actions@master
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
26-
- uses: actions/setup-node@v2
26+
- uses: actions/setup-node@v4
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
2929
- name: Get yarn cache directory path
3030
id: yarn-cache-dir-path
3131
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
32-
- uses: actions/cache@v2
32+
- uses: actions/cache@v4
3333
with:
3434
path: '**/node_modules'
3535
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
@@ -43,12 +43,12 @@ jobs:
4343
runs-on: ubuntu-latest
4444
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
4747
- uses: ruby/setup-ruby@v1
4848
with:
4949
ruby-version: 2.7
5050
- name: Cache gem
51-
uses: actions/cache@v2
51+
uses: actions/cache@v4
5252
with:
5353
path: vendor/bundle
5454
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
@@ -76,13 +76,13 @@ jobs:
7676
needs: [lint, test]
7777
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/7.x.x' || github.ref == 'refs/heads/8.x.x')
7878
steps:
79-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v4
8080
with:
8181
persist-credentials: false # GITHUB_TOKEN must not be set for the semantic release
82-
- uses: actions/setup-node@v2
82+
- uses: actions/setup-node@v4
8383
with:
8484
node-version: ${{ env.NODE_VERSION }}
85-
- uses: actions/cache@v2
85+
- uses: actions/cache@v4
8686
with:
8787
path: '**/node_modules'
8888
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

0 commit comments

Comments
 (0)