2023-04-24 22:06:36 +00:00
|
|
|
name: 'Publish to NPM'
|
2022-10-18 14:09:58 +00:00
|
|
|
|
|
|
|
on:
|
2022-10-18 14:13:54 +00:00
|
|
|
push:
|
|
|
|
tags:
|
2023-04-24 22:06:36 +00:00
|
|
|
- 'v*'
|
2022-10-18 14:09:58 +00: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 08:28:44 +00:00
|
|
|
node-version-file: '.nvmrc'
|
2023-04-24 22:06:36 +00:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
2022-10-18 14:09:58 +00:00
|
|
|
|
|
|
|
- name: Setup PNPM
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
2024-02-09 13:41:19 +00:00
|
|
|
- name: Install Playwright Dependencies
|
|
|
|
run: pnpm exec playwright install-deps
|
|
|
|
- name: Install Playwright Browsers
|
|
|
|
run: pnpm exec playwright install
|
2022-10-18 14:09:58 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: pnpm run test
|
|
|
|
|
|
|
|
- name: Release
|
2022-10-18 14:20:09 +00:00
|
|
|
run: pnpm publish --no-git-checks
|
2022-10-18 14:09:58 +00:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|