Skip to content

Commit d6ea74d

Browse files
Update GitHub Actions to fix deprecated actions
- Update actions/cache from v1 to v4 (fixes workflow failure) - Update actions/checkout to v4 (from v1/v2/master) - Update actions/setup-node to v4 (from v1.1.1/v2) - Replace deprecated set-output with GITHUB_OUTPUT
1 parent f64bde2 commit d6ea74d

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

.github/workflows/chromatic-label.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ jobs:
77
if: ${{ contains(github.event.pull_request.labels.*.name, 'snapshot') }}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
1313
- name: Read .nvmrc
14-
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
14+
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT
1515
id: nvm
1616
- name: Setup node
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: '${{ steps.nvm.outputs.nvmrc }}'
20-
- uses: actions/cache@v1
20+
- uses: actions/cache@v4
2121
with:
2222
path: ~/.cache/yarn
2323
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}

.github/workflows/chromatic.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
name: Run visual regression tests with chromatic
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Read .nvmrc
18-
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
18+
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT
1919
id: nvm
2020
- name: Setup node
21-
uses: actions/setup-node@v1.1.1
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: '${{ steps.nvm.outputs.nvmrc }}'
24-
- uses: actions/cache@v1
24+
- uses: actions/cache@v4
2525
with:
2626
path: ~/.cache/yarn
2727
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}

.github/workflows/publish-lerna.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
name: Publish
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
1414
- name: Dump GitHub context
1515
env:
1616
GITHUB_CONTEXT: ${{ toJson(github) }}
1717
run: echo "$GITHUB_CONTEXT"
1818
- name: Read .nvmrc
19-
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
19+
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT
2020
id: nvm
2121
- name: Setup node
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: '${{ steps.nvm.outputs.nvmrc }}'
2525
registry-url: https://registry.npmjs.org/
26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/yarn
2929
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}

.github/workflows/publish-mainline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
name: Publish
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
1414
- name: Dump GitHub context
1515
env:
1616
GITHUB_CONTEXT: ${{ toJson(github) }}
1717
run: echo "$GITHUB_CONTEXT"
1818
- name: Read .nvmrc
19-
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
19+
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT
2020
id: nvm
2121
- name: Setup node
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: '${{ steps.nvm.outputs.nvmrc }}'
2525
registry-url: https://registry.npmjs.org/
26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/yarn
2929
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ name: Test
33
on:
44
push:
55
branches:
6-
- "**"
6+
- '**'
77
tags-ignore:
8-
- "**"
8+
- '**'
99
jobs:
1010
build:
1111
name: Test, lint, typecheck
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@master
14+
- uses: actions/checkout@v4
1515
- name: Read .nvmrc
16-
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
16+
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT
1717
id: nvm
1818
- name: Setup node
19-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: "${{ steps.nvm.outputs.nvmrc }}"
22-
- uses: actions/cache@v1
21+
node-version: '${{ steps.nvm.outputs.nvmrc }}'
22+
- uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/yarn
2525
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}

0 commit comments

Comments
 (0)