2023-04-25 00:06:36 +02:00
|
|
|
name: 'Publish to NPM'
|
2022-10-18 16:09:58 +02:00
|
|
|
|
|
|
|
on:
|
2022-10-18 16:13:54 +02:00
|
|
|
push:
|
|
|
|
tags:
|
2023-04-25 00:06:36 +02:00
|
|
|
- 'v*'
|
2022-10-18 16:09:58 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-05-16 10:28:44 +02:00
|
|
|
node-version-file: '.nvmrc'
|
2023-04-25 00:06:36 +02:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
2022-10-18 16:09:58 +02:00
|
|
|
|
|
|
|
- name: Setup PNPM
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
2024-02-09 14:41:19 +01:00
|
|
|
- name: Install Playwright Dependencies
|
|
|
|
run: pnpm exec playwright install-deps
|
|
|
|
- name: Install Playwright Browsers
|
|
|
|
run: pnpm exec playwright install
|
2022-10-18 16:09:58 +02:00
|
|
|
- name: Run tests
|
|
|
|
run: pnpm run test
|
|
|
|
|
|
|
|
- name: Release
|
2022-10-18 16:20:09 +02:00
|
|
|
run: pnpm publish --no-git-checks
|
2022-10-18 16:09:58 +02:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|