mirror of https://github.com/nodejs/corepack.git
chore(ci): Replace deprecated command with environment file (#234)
This commit is contained in:
parent
15ceb832a3
commit
63950db683
|
|
@ -23,7 +23,8 @@ jobs:
|
|||
|
||||
- name: Get the Yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
|
||||
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -66,7 +67,8 @@ jobs:
|
|||
|
||||
- name: Get the Yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
|
||||
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ jobs:
|
|||
|
||||
- name: Get the Yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
|
||||
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ jobs:
|
|||
|
||||
- name: Get the Yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
|
||||
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -50,7 +51,8 @@ jobs:
|
|||
|
||||
- name: Check if anything has changed
|
||||
id: contains-changes
|
||||
run: echo "::set-output name=result::$(git --no-pager diff --quiet -- tests/nock || echo "yes")"
|
||||
run: echo "result=$(git --no-pager diff --quiet -- tests/nock || echo "yes")" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- name: Commit changes
|
||||
if: ${{ steps.contains-changes.outputs.result == 'yes' }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue