Skip to content

v2.2.0

v2.2.0 #306

Workflow file for this run

name: Automation
on:
push:
branches: ['**']
release:
types: [published]
pull_request:
branches: ['**']
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- name: Test Lint
run: npm run lint
- name: Test Types
run: npm run types
- name: Build for Distribution
run: xvfb-run --auto-servernum npm run build
- name: Upload chrome extension
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: upload
path: .upload/
include-hidden-files: true
# Automatically attach files to release
- name: Upload to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: .upload/*