occulto/.github/workflows/release.yaml

36 lines
746 B
YAML
Raw Normal View History

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
- name: Install Playwright
2024-02-09 14:34:53 +01:00
run: pnpm playwright install-deps && pnpm 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 }}