{"id":17726543,"url":"https://github.com/eviden-actions/get-playwright-version","last_synced_at":"2026-01-21T09:31:49.533Z","repository":{"id":258863990,"uuid":"859820735","full_name":"eviden-actions/get-playwright-version","owner":"eviden-actions","description":"Extracts and outputs the Playwright version from a project's lockfile","archived":false,"fork":false,"pushed_at":"2024-10-20T22:28:52.000Z","size":1727,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-21T02:41:49.402Z","etag":null,"topics":["actions","cicd","github","github-actions","lockfile","playwright","version"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eviden-actions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T10:37:35.000Z","updated_at":"2024-10-20T22:28:55.000Z","dependencies_parsed_at":"2024-10-22T03:04:51.932Z","dependency_job_id":null,"html_url":"https://github.com/eviden-actions/get-playwright-version","commit_stats":null,"previous_names":["eviden-actions/get-playwright-version"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviden-actions%2Fget-playwright-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviden-actions%2Fget-playwright-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviden-actions%2Fget-playwright-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviden-actions%2Fget-playwright-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eviden-actions","download_url":"https://codeload.github.com/eviden-actions/get-playwright-version/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967971,"owners_count":21833244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cicd","github","github-actions","lockfile","playwright","version"],"created_at":"2024-10-25T17:05:44.989Z","updated_at":"2026-01-21T09:31:49.498Z","avatar_url":"https://github.com/eviden-actions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-playwright-version\n\nThis parses the your project's lockfile and returns the installed playwright version.\nSupported are `package-lock.json` (NPM), `yarn.lock` (Yarn 1), and `pnpm-lock.yaml` (PNPM).\n\nIf you are using the [Playwright Docker Image](https://mcr.microsoft.com/en-us/product/playwright/about) in your CI, Playwright strongly recommends using a [versioned tag](https://playwright.dev/docs/docker). This action can help you make sure your project's Playwright version matches the Playwright Docker Image version.\n\n[![Release](https://github.com/atos-actions/get-playwright-version/actions/workflows/release.yml/badge.svg#main)](https://github.com/atos-actions/get-playwright-version/actions/workflows/release.yml)\n\n## Prerequisites\n\nDefine whatever your action needs to run here\n\n## Usage\n\n```\nname: Playwright Tests\non:\n  push:\n    branches: [ main ]\n\njobs:\n  read-playwright-version:\n    name: 'Read Playwright Version'\n    runs-on: ubuntu-latest\n    inputs:\n      no-version-found: 'error'\n    outputs:\n      playwright-version: ${{ steps.get_playwright_version.outputs.playwright-version }}\n    steps:\n      - uses: actions/checkout@v4\n      - id: get_playwright_version\n\t\t\t\tuses: atos-actions/get-playwright-version@v1\n\n  playwright:\n    name: 'Run Playwright Tests'\n    runs-on: ubuntu-latest\n    needs: read-playwright-version\n    container:\n      image: mcr.microsoft.com/playwright:${{ needs.read-playwright-version.outputs.playwright-version }}-noble\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n      - name: Install dependencies\n        run: npm ci\n      - name: Run your tests\n        run: npx playwright test\n        env:\n          HOME: /root\n```\n\n### Inputs\n\n|        Name        |                                    Description                                     | Default |\n| :----------------: | :--------------------------------------------------------------------------------: | :-----: |\n| `no-version-found` | The message level when no Playwright version is found (`error`, `warning`, `info`) | `error` |\n\n### Outputs\n\n|         Name         |                    Description                    |  Example  |\n| :------------------: | :-----------------------------------------------: | :-------: |\n| `playwright-version` | The playwright version from the package-lock.json | `v1.47.1` |\n\n## Sources\n\nThanks to [@mxschmitt](https://github.com/mxschmitt) for coming up with the [workflow](https://github.com/microsoft/playwright/issues/32483#issuecomment-2348193597) this action is based on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feviden-actions%2Fget-playwright-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feviden-actions%2Fget-playwright-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feviden-actions%2Fget-playwright-version/lists"}