Skip to content

Commit fbcea93

Browse files
committed
chore: use env for yarn
1 parent 8d5ddb9 commit fbcea93

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ runs:
8686
env:
8787
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS: 1
8888
YARN_CUSTOM_URL: ${{ inputs.yarn-custom-url }}
89-
env:
90-
COREPACK_ENABLE_UNSAFE_CUSTOM_URLS: 1
9189
run: |
92-
echo "Preparing and activating custom Yarn from URL: ${{ inputs.yarn-custom-url }}"
93-
corepack prepare "yarn@${{ inputs.yarn-custom-url }}" --activate
90+
echo "Preparing and activating custom Yarn from URL: ${{ env.YARN_CUSTOM_URL }}"
91+
corepack prepare "yarn@${{ env.YARN_CUSTOM_URL }}" --activate
9492
shell: bash
9593

9694
# In a low-risk environment, try to download cache of `node_modules`, if it

0 commit comments

Comments
 (0)