From fb4f25003c30081ebb16dac4af05f4f7376d9e1b Mon Sep 17 00:00:00 2001 From: Pejman Ghorbanzade Date: Sun, 18 Feb 2024 19:49:42 -0800 Subject: [PATCH] attempt to fix failing build --- .github/workflows/main.yml | 9 ++++++++- package-lock.json | 34 ++++++++++++++++++++++++++++++++-- slides/cppcon21/package.json | 3 ++- slides/cppcon23/package.json | 3 ++- 4 files changed, 44 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a56a612..3ed0895 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -192,13 +192,20 @@ jobs: node-version: 20 cache: 'npm' cache-dependency-path: package-lock.json - - run: npm ci + if: steps.changes.outputs.web == 'true' + - name: Install dependencies + run: | + npm install + npm -w web install + if: steps.changes.outputs.web == 'true' - run: npm run build + if: steps.changes.outputs.web == 'true' - name: Prepare final artifact run: | mkdir -p ./dist mv ./web/out ./dist/ tar -zcf web.tar.gz ./dist + if: steps.changes.outputs.web == 'true' - name: push web to aws run: aws s3 cp web.tar.gz ${{ secrets.AWS_BUCKET }}/ if: steps.changes.outputs.web == 'true' diff --git a/package-lock.json b/package-lock.json index 7f18ef2..6eff239 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10594,6 +10594,34 @@ "integrity": "sha512-sxMwpDw/ySY1WB2CE3+IdMuEcWibJ72DDOsXLkSmEaSzwEUaYBT6DWgOfBiHGCux4q433X6+OEFWjlVqp7gL6g==", "dev": true }, + "node_modules/playwright-chromium": { + "version": "1.41.2", + "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.41.2.tgz", + "integrity": "sha512-1XoW4aGGRbS2BJLldtLcv2QW3deMv8myE5iCtfGRPq99BWqmBLJvJTgY/SyfBCoklwQvl91zUWYWHjCAuvKGkw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "playwright-core": "1.41.2" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/playwright-core": { + "version": "1.41.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.41.2.tgz", + "integrity": "sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==", + "dev": true, + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/popmotion": { "version": "11.0.5", "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.5.tgz", @@ -13269,7 +13297,8 @@ "slides/cppcon21": { "name": "@ghorbanzade/cppcon21", "devDependencies": { - "@iconify-json/heroicons-solid": "^1.1.8" + "@iconify-json/heroicons-solid": "^1.1.8", + "playwright-chromium": "^1.41.2" } }, "slides/cppcon23": { @@ -13279,7 +13308,8 @@ "@iconify-json/devicon": "^1.1.15" }, "devDependencies": { - "@iconify-json/heroicons": "^1.1.12" + "@iconify-json/heroicons": "^1.1.12", + "playwright-chromium": "^1.41.2" } }, "slides/djug22": { diff --git a/slides/cppcon21/package.json b/slides/cppcon21/package.json index b6fea41..b6fcda6 100644 --- a/slides/cppcon21/package.json +++ b/slides/cppcon21/package.json @@ -7,6 +7,7 @@ "export": "slidev export" }, "devDependencies": { - "@iconify-json/heroicons-solid": "^1.1.8" + "@iconify-json/heroicons-solid": "^1.1.8", + "playwright-chromium": "^1.41.2" } } diff --git a/slides/cppcon23/package.json b/slides/cppcon23/package.json index cddd561..ee610e3 100644 --- a/slides/cppcon23/package.json +++ b/slides/cppcon23/package.json @@ -7,7 +7,8 @@ "export": "slidev export" }, "devDependencies": { - "@iconify-json/heroicons": "^1.1.12" + "@iconify-json/heroicons": "^1.1.12", + "playwright-chromium": "^1.41.2" }, "dependencies": { "@iconify-json/bi": "^1.1.20",