Skip to content

Switch to pnpm

Switch to pnpm #103

Workflow file for this run

name: Playwright Tests
on: ['push', 'pull_request']
jobs:
build_test:
name: Build and test
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Lint
run: pnpm run lint
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test
- name: Upload artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: lib
path: dist
- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
release:
if: startsWith(github.event.ref, 'refs/tags/')
name: Publish new release
needs: build

Check failure on line 57 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Playwright Tests

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 57, Col: 12): Job 'release' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: lib
path: dist
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}