Skip to content

Commit 209fb38

Browse files
authored
chore: bump all actions in gha (#747)
1 parent 78ce029 commit 209fb38

File tree

4 files changed

+31
-24
lines changed

4 files changed

+31
-24
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2121
with:
2222
node-version: lts/*
23+
env:
24+
SKIP_YARN_COREPACK_CHECK: 1
2325

2426
- name: Get the Yarn cache directory path
2527
id: yarn-cache-dir-path
26-
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
27-
shell: bash
28+
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
2829

29-
- uses: actions/cache@v4
30+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3031
with:
3132
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
3233
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
@@ -65,19 +66,21 @@ jobs:
6566
runs-on: ${{matrix.platform}}
6667

6768
steps:
68-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6970

7071
- name: "Use Node.js ${{matrix.node}}.x"
71-
uses: actions/setup-node@v4
72+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7273
with:
7374
node-version: ${{matrix.node}}.x
75+
env:
76+
SKIP_YARN_COREPACK_CHECK: 1
7477

7578
- name: Get the Yarn cache directory path
7679
id: yarn-cache-dir-path
77-
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
78-
shell: bash
80+
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
81+
shell: bash # Needs explicit bash for Windows-support
7982

80-
- uses: actions/cache@v4
83+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8184
with:
8285
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
8386
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
release_created: ${{ steps.release.outputs.release_created }}
2121
release_tag: ${{ steps.release.outputs.tag_name }}
2222
steps:
23-
- uses: googleapis/release-please-action@v3
23+
- uses: googleapis/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13
2424
id: release
2525
with:
2626
release-type: node
@@ -35,18 +35,19 @@ jobs:
3535
contents: write
3636
id-token: write
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939

40-
- uses: actions/setup-node@v4
40+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
4141
with:
4242
node-version: lts/*
43+
env:
44+
SKIP_YARN_COREPACK_CHECK: 1
4345

4446
- name: Get the Yarn cache directory path
4547
id: yarn-cache-dir-path
46-
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
47-
shell: bash
48+
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
4849

49-
- uses: actions/cache@v4
50+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5051
with:
5152
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
5253
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}

.github/workflows/sync.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818

1919
- name: Install Node
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2121
with:
2222
node-version: lts/*
23+
env:
24+
SKIP_YARN_COREPACK_CHECK: 1
2325

2426
- name: "Update the package manager versions"
2527
run: |

.github/workflows/update-nock-files.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,22 @@ jobs:
4343
ACTUAL: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }}
4444
EXPECTED: ${{ inputs.head_sha }}
4545

46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4747
with:
4848
ref: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }}
4949

5050
- name: Install Node
51-
uses: actions/setup-node@v4
51+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
5252
with:
5353
node-version: lts/*
54+
env:
55+
SKIP_YARN_COREPACK_CHECK: 1
5456

5557
- name: Get the Yarn cache directory path
5658
id: yarn-cache-dir-path
57-
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
58-
shell: bash
59+
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
5960

60-
- uses: actions/cache@v4
61+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6162
with:
6263
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
6364
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
@@ -101,7 +102,7 @@ jobs:
101102
REMOTE_REF: ${{ fromJson(steps.pr_info.outputs.DATA).head_ref }}
102103

103104
- name: Upload `tests/nocks.db` in case of failure
104-
uses: actions/upload-artifact@v4
105+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
105106
if: ${{ failure() && steps.contains-changes.outputs.result == 'yes' }}
106107
with:
107108
name: nock

0 commit comments

Comments
 (0)