Skip to content

Commit a86946e

Browse files
authored
👷 Fix deprecation errors in CI Action (roots#3183)
1 parent 3932435 commit a86946e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Diff for: .github/workflows/main.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,10 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node }}
28+
cache: 'yarn'
2829
env:
2930
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3031

31-
- name: Restore the Yarn cache directory
32-
id: yarncache
33-
run: echo "::set-output name=dir::$(yarn cache dir)"
34-
35-
- uses: actions/cache@v4
36-
with:
37-
path: ${{ steps.yarncache.outputs.dir }}
38-
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }}
39-
restore-keys: ${{ runner.os }}-${{ matrix.node }}-yarn-
40-
4132
- name: Install dependencies using Yarn
4233
run: yarn install --frozen-lockfile
4334

@@ -65,11 +56,11 @@ jobs:
6556
php-version: ${{ matrix.php }}
6657
coverage: xdebug
6758
env:
68-
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6960

7061
- name: Restore the Composer cache directory
7162
id: composercache
72-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
63+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
7364

7465
- uses: actions/cache@v4
7566
with:

0 commit comments

Comments
 (0)