From 596e1ee221c5c79cf1f3ca25a17ccfa9a04478e5 Mon Sep 17 00:00:00 2001 From: Mike Han <56001373+mhan83@users.noreply.github.com> Date: Mon, 5 Jul 2021 11:53:05 -0600 Subject: [PATCH] Install node dependencies before trying to determine browser versions (#101) * Install node dependencies before trying to determine browser versions print-browser-version.js uses the playwright api directly so in order to use the script, playwright needs to be installed. --- .github/workflows/release.yml | 44 ++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9d80e17..d67dfd17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,24 @@ jobs: - name: Install dependencies if: ${{ steps.prep.outputs.tag_name == '' }} - run: npm ci + run: | + npm ci + + # Dependencies to launch webkit to inspect its version + sudo apt-get update + sudo apt-get install libegl1\ + libopus0\ + libwoff1\ + libharfbuzz-icu0\ + gstreamer1.0-plugins-base\ + libgstreamer-gl1.0-0\ + gstreamer1.0-plugins-bad\ + libopenjp2-7\ + libwebpdemux2\ + libenchant1c2a\ + libhyphen0\ + libgles2\ + gstreamer1.0-libav - name: generate (pre-)release draft if: ${{ steps.prep.outputs.tag_name == '' }} @@ -115,6 +132,31 @@ jobs: PLAYWRIGHT_VERSION=$(< package-lock.json jq -r '.dependencies["playwright"].version') echo "playwright_version=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV + - name: Setup Node version + uses: actions/setup-node@v1 + with: + node-version: 14.x + + - name: Install dependencies + run: | + npm ci + + # Dependencies to launch webkit to inspect its version + sudo apt-get update + sudo apt-get install libegl1\ + libopus0\ + libwoff1\ + libharfbuzz-icu0\ + gstreamer1.0-plugins-base\ + libgstreamer-gl1.0-0\ + gstreamer1.0-plugins-bad\ + libopenjp2-7\ + libwebpdemux2\ + libenchant1c2a\ + libhyphen0\ + libgles2\ + gstreamer1.0-libav + - name: Get Playwright browser versions run: | CHROMIUM_VERSION=$(node ./scripts/print-browser-version.js 'chromium')