mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-21 14:46:25 +00:00
38 lines
821 B
YAML
38 lines
821 B
YAML
name: 'Publish to NPM'
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
- name: Install Playwright Dependencies
|
|
run: pnpm exec playwright install-deps
|
|
- name: Install Playwright Browsers
|
|
run: pnpm exec playwright install
|
|
- name: Run tests
|
|
run: pnpm run test
|
|
|
|
- name: Release
|
|
run: pnpm publish --no-git-checks
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|