@@ -57,10 +57,11 @@ jobs:
57
57
uses : ./.github/workflows/reusable-build.yml
58
58
with :
59
59
target : x86_64-unknown-linux-gnu
60
- runner : ${{ needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS }}
60
+ runner : ${{ vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-22.04"' }}
61
61
ref : ${{ github.event_name == 'workflow_dispatch' && format('refs/pull/{0}/head', inputs.pr) || github.sha }}
62
62
test : false
63
63
bench : false
64
+ prefer_docker : false
64
65
65
66
create-comment :
66
67
if : github.repository == 'web-infra-dev/rspack'
@@ -181,19 +182,41 @@ jobs:
181
182
cd rspack-ecosystem-ci
182
183
pnpm i --frozen-lockfile
183
184
185
+ pnpm verdaccio --config verdaccio.yaml&
186
+ printf '\n//localhost:4873/:_authToken="this-is-a-fake-token"\n' >> ~/.npmrc
187
+
184
188
mkdir -p ./workspace
185
189
ln -s $RSPACK_DIR ./workspace/rspack
186
190
191
+ cd workspace/rspack
192
+ pnpm --filter @rspack/binding... \
193
+ --filter @rspack/binding-darwin-arm64... \
194
+ --filter @rspack/core... \
195
+ --filter @rspack/dev-server... \
196
+ --filter @rspack/test-tools... \
197
+ --filter @rspack/tracing... \
198
+ exec sh -c 'jq ".publishConfig.provenance = false" package.json > package.json.tmp && mv package.json.tmp package.json'
199
+
200
+ pnpm publish --no-git-checks --provenance=false --access public --registry=http://localhost:4873 \
201
+ --filter @rspack/binding... \
202
+ --filter @rspack/binding-darwin-arm64... \
203
+ --filter @rspack/core... \
204
+ --filter @rspack/dev-server... \
205
+ --filter @rspack/test-tools... \
206
+ --filter @rspack/tracing...
207
+
208
+ cd ../..
209
+ pwd
187
210
SUITE='${{ matrix.suite }}'
188
211
SUITE_REF='${{ inputs.suiteRef || '-' }}'
189
212
CONCLUSION='success'
190
213
if [[ "$SUITE_REF" != "-" ]]; then
191
214
# run test suite with suiteRef
192
- pnpm tsx ecosystem-ci.ts run-suites --suite-commit "$SUITE_REF" "$SUITE" || CONCLUSION='failure'
215
+ NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm tsx ecosystem-ci.ts run-suites --suite-commit "$SUITE_REF" "$SUITE" || CONCLUSION='failure'
193
216
echo "finish run $SUITE with $SUITE_REF"
194
217
else
195
218
# run test suite
196
- pnpm tsx ecosystem-ci.ts run-suites "$SUITE" || CONCLUSION='failure'
219
+ NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm tsx ecosystem-ci.ts run-suites "$SUITE" || CONCLUSION='failure'
197
220
echo "finish run $SUITE"
198
221
fi
199
222
echo "{\"conclusion\":\"$CONCLUSION\"}" >> "$RSPACK_DIR/$SUITE.json"
0 commit comments