Skip to content

Commit

Permalink
ci: Get playwright version from pnpm-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Apr 22, 2024
1 parent ce3287b commit e8e828b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get installed Playwright version
run: echo "PLAYWRIGHT_VERSION=$(cat pnpm-lock.yaml | grep /playwright@ | sed -r 's/(.*@)([0-9.]*)(:)/\2/')" >> $GITHUB_ENV

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Get installed Playwright version
run: echo "PLAYWRIGHT_VERSION=$(pnpm ls -r | grep playwright | sed 's/.* //')" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup playwright cache
id: playwright-cache
Expand Down

0 comments on commit e8e828b

Please sign in to comment.