Skip to content

Commit

Permalink
Use corepack pnpm for building tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Systemcluster committed Aug 8, 2024
1 parent 30c6aac commit 27f1379
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,11 @@ jobs:
- run: |
cargo build -p wasm-bindgen-cli
ln -snf `pwd`/target/debug/wasm-bindgen $(dirname `which cargo`)/wasm-bindgen
- run: mv _package.json package.json && npm install && rm package.json
- run: mv _package.json package.json && corepack pnpm install && rm package.json
- run: |
function build() {
(cd examples/$1 &&
(npm run build -- --output-path ../../exbuild/$1 ||
(corepack pnpm run build -- --output-path ../../exbuild/$1 ||
(./build.sh && mkdir -p ../../exbuild/$1 && cp -r ./* ../../exbuild/$1 && rm ../../exbuild/$1/**/.gitignore))
) || exit 1;
}
Expand Down
1 change: 1 addition & 0 deletions _package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions crates/typescript-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"tsc": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.config.cjs"
Expand Down
1 change: 1 addition & 0 deletions examples/add/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/char/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/closures/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/console_log/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/dom/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/duck-typed-interfaces/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/guide-supported-types-examples/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/hello_world/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/import_js/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/julia_set/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/paint/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/performance/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/request-animation-frame/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/todomvc/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/wasm-in-wasm-imports/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/wasm-in-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/weather_report/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/webaudio/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/webgl/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/webrtc_datachannel/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down
1 change: 1 addition & 0 deletions examples/webxr/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"packageManager": "[email protected]",
"scripts": {
"build": "webpack",
"serve": "webpack serve"
Expand Down

0 comments on commit 27f1379

Please sign in to comment.