Skip to content

Commit 174331e

Browse files
committed
ci(create-e2e): move YARN_ENABLE_HARDENED_MODE to job-level env
Step-level env with value '0' wasn't propagated through the vp create → vp install → yarn install chain. Move to job-level env with boolean false so it's available to all child processes.
1 parent 70209e9 commit 174331e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/test-vp-create.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ jobs:
144144
# Force full dependency rewriting so the library template's existing
145145
# vite-plus dep gets overridden with the local tgz
146146
VP_FORCE_MIGRATE: '1'
147+
# Yarn Berry enables hardened mode on public PRs, blocking lockfile creation
148+
YARN_ENABLE_HARDENED_MODE: false
147149
steps:
148150
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
149151

@@ -172,9 +174,6 @@ jobs:
172174
173175
- name: Run vp create ${{ matrix.template.name }} with ${{ matrix.package-manager }}
174176
working-directory: ${{ runner.temp }}
175-
env:
176-
# Yarn Berry enables hardened mode on public PRs, blocking lockfile creation
177-
YARN_ENABLE_HARDENED_MODE: '0'
178177
run: |
179178
vp create ${{ matrix.template.create-args }} \
180179
--no-interactive \

0 commit comments

Comments
 (0)