Skip to content

Commit

Permalink
Install node dependencies before trying to determine browser versions (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
mhan83 authored Jul 5, 2021
1 parent 7562348 commit 596e1ee
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '' }}
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 596e1ee

Please sign in to comment.