Skip to content

Release v2.1.2

Release v2.1.2 #18

Workflow file for this run

name: CI
on:
- push
- pull_request
permissions: {}
jobs:
unit:
permissions:
contents: read
runs-on: ubuntu-24.04
name: Node.js ${{ matrix.node-version }}
strategy:
matrix:
node-version:
- '10'
- '12'
- '14'
- '16'
- '18'
- '20'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: cd node_modules/browserslist && npm install [email protected] # https://github.com/browserslist/browserslist/issues/904
- run: npm test
publish:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- unit
permissions:
contents: read
id-token: write
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
- run: npm publish --tag=${{ contains(github.ref, '-rc') && 'next' || 'latest' }}