Skip to content

v2.28.0

v2.28.0 #38

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
build:
name: Build
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
browser:
- ChromeHeadless
- FirefoxHeadless
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Test
run: npm test -- --browsers ${{ matrix.browser }}
- name: Diff
run: git diff --exit-code
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
env:
NODE_ENV: production
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
env:
NODE_ENV: development
- name: Build
run: npm run build --if-present
- name: Test
run: npm test -- --browsers ChromeHeadless,FirefoxHeadless
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}