occulto/.github/workflows/release.yaml

38 lines
748 B
YAML
Raw Normal View History

2022-10-18 14:09:58 +00:00
name: "Publish to NPM"
on:
2022-10-18 14:13:54 +00:00
push:
tags:
- "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:
node-version: 16
registry-url: "https://registry.npmjs.org"
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 7
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: pnpm exec playwright install-deps
- 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 }}