Skip to content

Commit

Permalink
Update CodeSandbox to pull build artifacts from CI
Browse files Browse the repository at this point in the history
Instead of building them from source.

The `download-experimental-build` script polls CI until the build
has finished.
  • Loading branch information
acdlite committed Sep 22, 2021
1 parent 51e017c commit 12aa55d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"packages": ["packages/react", "packages/react-dom", "packages/scheduler"],
"buildCommand": "build --type=NODE react/index,react-dom/index,react-dom/src/server,react-dom/test-utils,scheduler/index,react/jsx-runtime,react/jsx-dev-runtime",
"buildCommand": "download-latest-build-in-codesandbox-ci",
"node": "12",
"publishDirectory": {
"react": "build/node_modules/react",
"react-dom": "build/node_modules/react-dom",
"scheduler": "build/node_modules/scheduler"
"react": "build/oss-experimental/react",
"react-dom": "build/oss-experimental/react-dom",
"scheduler": "build/oss-experimental/scheduler"
},
"sandboxes": ["new"],
"silent": true
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@
"version-check": "node ./scripts/tasks/version-check.js",
"merge-fork": "node ./scripts/merge-fork/merge-fork.js",
"replace-fork": "node ./scripts/merge-fork/replace-fork.js",
"publish-prereleases": "node ./scripts/release/publish-using-ci-workflow.js"
"publish-prereleases": "node ./scripts/release/publish-using-ci-workflow.js",
"download-build": "node ./scripts/release/download-experimental-build.js",
"download-latest-build": "node ./scripts/release/download-experimental-build.js --commit=$(HEAD)",
"download-latest-build-in-codesandbox-ci": "cd scripts/release && yarn install && cd ../../ && yarn download-latest-build"
}
}

0 comments on commit 12aa55d

Please sign in to comment.